From 4334824e850eb8da96e018f83d247644a1075f4b Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 11 Apr 2012 22:05:24 +0200 Subject: [PATCH] Emit modified() after all icon attributes have been set in Entry::setIcon(). --- src/core/Entry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index bc077922..e46fc3d6 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -234,10 +234,13 @@ void Entry::setIcon(const Uuid& uuid) { Q_ASSERT(!uuid.isNull()); - if (set(m_customIcon, uuid)) { + if (m_customIcon != uuid) { + m_customIcon = uuid; m_iconNumber = 0; m_pixmapCacheKey = QPixmapCache::Key(); + + Q_EMIT modified(); } }