Android: Fix removing of no longer valid kits

Changing the ndk directory will remove the toolchains. That means some
existing kits might be without a toolchain, we need to handle those too.

Change-Id: I02789550acc4dd16591a87c768c2bddecb4b6e80
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2013-02-27 12:46:55 +01:00
parent f6b9e90f74
commit d2dff265ae

View File

@@ -591,11 +591,6 @@ void AndroidConfigurations::updateAutomaticKitList()
continue;
if (k->isSdkProvided())
continue;
ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain((k));
if (!tc)
continue;
if (tc->type() != QLatin1String(Constants::ANDROID_TOOLCHAIN_TYPE))
continue;
existingKits << k;
}