projectexplorer: avoid excessive kit updates

unblock did always assume something changed (and mustNotify not
correctly set)

Change-Id: Id2133b55ef27110a41be22d1f769fd987aa11033
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Fawzi Mohamed
2014-09-10 17:12:13 +02:00
committed by Tobias Hunger
parent a439d939e6
commit d272e0cc3e

View File

@@ -217,9 +217,8 @@ void Kit::unblockNotification()
--d->m_nestedBlockingLevel;
if (d->m_nestedBlockingLevel > 0)
return;
kitUpdated();
d->m_mustNotify = false;
if (d->m_mustNotify)
kitUpdated();
}
Kit *Kit::clone(bool keepName) const
@@ -697,6 +696,7 @@ void Kit::kitUpdated()
}
d->m_hasValidityInfo = false;
KitManager::notifyAboutUpdate(this);
d->m_mustNotify = false;
}
} // namespace ProjectExplorer