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;
|
--d->m_nestedBlockingLevel;
|
||||||
if (d->m_nestedBlockingLevel > 0)
|
if (d->m_nestedBlockingLevel > 0)
|
||||||
return;
|
return;
|
||||||
|
if (d->m_mustNotify)
|
||||||
kitUpdated();
|
kitUpdated();
|
||||||
d->m_mustNotify = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Kit *Kit::clone(bool keepName) const
|
Kit *Kit::clone(bool keepName) const
|
||||||
@@ -697,6 +696,7 @@ void Kit::kitUpdated()
|
|||||||
}
|
}
|
||||||
d->m_hasValidityInfo = false;
|
d->m_hasValidityInfo = false;
|
||||||
KitManager::notifyAboutUpdate(this);
|
KitManager::notifyAboutUpdate(this);
|
||||||
|
d->m_mustNotify = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ProjectExplorer
|
} // namespace ProjectExplorer
|
||||||
|
|||||||
Reference in New Issue
Block a user