Emit modified() after all icon attributes have been set in Entry::setIcon().

This commit is contained in:
Felix Geyer 2012-04-11 22:05:24 +02:00
parent 674909f635
commit 4334824e85

View File

@ -234,10 +234,13 @@ void Entry::setIcon(const Uuid& uuid)
{ {
Q_ASSERT(!uuid.isNull()); Q_ASSERT(!uuid.isNull());
if (set(m_customIcon, uuid)) { if (m_customIcon != uuid) {
m_customIcon = uuid;
m_iconNumber = 0; m_iconNumber = 0;
m_pixmapCacheKey = QPixmapCache::Key(); m_pixmapCacheKey = QPixmapCache::Key();
Q_EMIT modified();
} }
} }