After this commit
https://cgit.kde.org/plasma-framework.git/commit/?id=9f08668147d2e99f8b5069ff50d5c54e672a87af
the iconitemtest started to fail, the reason was just a typo in the initial
"if" so it does exactly the same in the "if" and the "else" part. So let's
correct it to do what it is suposed to do.

Test Plan: Ran test

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D16733
This commit is contained in:
José Manuel Santamaría Lema 2018-11-08 16:23:20 +01:00
parent 768b0882e9
commit ed1724c63e

View File

@ -168,8 +168,8 @@ void IconItem::setSource(const QVariant &source)
m_icon = QIcon(localFile);
m_imageIcon = QImage();
} else {
m_icon = QIcon(localFile);
m_imageIcon = QImage();
m_icon = QIcon();
m_imageIcon = QImage(localFile);
}
m_svgIconName.clear();
delete m_svgIcon;