forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
a439d939e6
commit
d272e0cc3e
@@ -217,9 +217,8 @@ void Kit::unblockNotification()
|
||||
--d->m_nestedBlockingLevel;
|
||||
if (d->m_nestedBlockingLevel > 0)
|
||||
return;
|
||||
|
||||
if (d->m_mustNotify)
|
||||
kitUpdated();
|
||||
d->m_mustNotify = false;
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user