forked from qt-creator/qt-creator
KitManager: Only setup sdk kits if we keep them
Change-Id: Iff56c8114590f99c70fbee31699ced2c9786dee7 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -148,7 +148,6 @@ void KitManager::restoreKits()
|
|||||||
k->setAutoDetected(true);
|
k->setAutoDetected(true);
|
||||||
k->setSdkProvided(true);
|
k->setSdkProvided(true);
|
||||||
k->makeSticky();
|
k->makeSticky();
|
||||||
k->setup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SDK kits are always considered to be up for validation since they might have been
|
// SDK kits are always considered to be up for validation since they might have been
|
||||||
@@ -191,6 +190,8 @@ void KitManager::restoreKits()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (toStore == current)
|
||||||
|
toStore->setup();
|
||||||
addKit(toStore);
|
addKit(toStore);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user