forked from qt-creator/qt-creator
Android: Compare typeId() to the correct constant
Broken in e6d1141e1e,
which changed the code to use typeId() instead of type() but
didn't change to what it was compared.
Change-Id: I5b4f76395bd193ee30ee606023483d3bd0b062e8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -90,7 +90,7 @@ bool AndroidGdbServerKitInformation::isAndroidKit(const Kit *kit)
|
||||
ToolChain *tc = ToolChainKitInformation::toolChain(kit);
|
||||
if (qt && tc)
|
||||
return qt->type() == QLatin1String(Constants::ANDROIDQT)
|
||||
&& tc->typeId() == Constants::ANDROID_TOOLCHAIN_TYPE;
|
||||
&& tc->typeId() == Constants::ANDROID_TOOLCHAIN_ID;
|
||||
return false;
|
||||
|
||||
}
|
||||
@@ -108,7 +108,7 @@ void AndroidGdbServerKitInformation::setGdbSever(Kit *kit, const FileName &gdbSe
|
||||
FileName AndroidGdbServerKitInformation::autoDetect(Kit *kit)
|
||||
{
|
||||
ToolChain *tc = ToolChainKitInformation::toolChain(kit);
|
||||
if (!tc || tc->typeId() != Constants::ANDROID_TOOLCHAIN_TYPE)
|
||||
if (!tc || tc->typeId() != Constants::ANDROID_TOOLCHAIN_ID)
|
||||
return FileName();
|
||||
AndroidToolChain *atc = static_cast<AndroidToolChain *>(tc);
|
||||
return atc->suggestedGdbServer();
|
||||
|
||||
Reference in New Issue
Block a user