TargetSetupPage: Ignore changes while ProjectImporter is updating

This causes the same kit to be processed repeatedly, which should not
cause harm, but waste CPU cycles.

Change-Id: Ie42272aacec6d8350398b65973570282c0c8d287
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-11-06 17:15:06 +01:00
parent cf3640a882
commit b39687645d

View File

@@ -344,12 +344,12 @@ void TargetSetupPage::handleKitAddition(Kit *k)
void TargetSetupPage::handleKitRemoval(Kit *k)
{
if (m_importer)
m_importer->cleanupKit(k);
if (isUpdating())
return;
if (m_importer)
m_importer->cleanupKit(k);
removeWidget(k);
updateVisibility();
}