Commit 4bfe6f93 authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

Revert "ToolChains: Do not list ToolChains removed by the sdktool"

Obviously the patch removes too much.
This reverts commit 9a5f81d9


Change-Id: Id6f128a8d72b51d0d1701a0a82377b56e2a314b2
Reviewed-by: default avatarhjk <>
parent 9b27c9b9
......@@ -204,17 +204,15 @@ void ToolChainManager::restoreToolChains()
Utils::erase(tcsToCheck, [tcsToRegister](ToolChain *toCheck) -> bool {
// Remove TCs configured by the SDK and found in the user settings:
if (Utils::anyOf(tcsToRegister, Utils::equal(&ToolChain::id, toCheck->id())))
return true;
// Remove TCs from user settings that are no longer configured by the SDK:
if (toCheck->detection() == ToolChain::AutoDetectionFromSettings
&& !Utils::anyOf(tcsToRegister, Utils::equal(&ToolChain::id, toCheck->id())))
return true;
return false;
// Remove TCs configured by the SDK:
foreach (ToolChain *tc, tcsToRegister) {
for (int i = tcsToCheck.count() - 1; i >= 0; --i) {
if (>id() == tc->id()) {
// Then auto detect
QList<ToolChain *> detectedTcs;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment