From cfe5b48bfd604113c895426d31d6269c27fd33ff Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 18 Apr 2012 17:14:51 +0200 Subject: [PATCH] Handle Group::setIcon() manually instead of calling set(). That way we don't emit modified() in between setting the attributes. --- src/core/Group.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/Group.cpp b/src/core/Group.cpp index ffca3f4e..b37821bf 100644 --- a/src/core/Group.cpp +++ b/src/core/Group.cpp @@ -186,11 +186,14 @@ void Group::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(); + updateTimeinfo(); + Q_EMIT modified(); Q_EMIT dataChanged(this); } }