forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user