Handle Group::setIcon() manually instead of calling set().

That way we don't emit modified() in between setting the attributes.
This commit is contained in:
Felix Geyer 2012-04-18 17:14:51 +02:00
parent ca5dd373ed
commit cfe5b48bfd

View File

@ -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);
}
}