forked from qt-creator/qt-creator
SDKtool: Fix detection of existing tool chains
Change-Id: Ie45dd4288b61606eb8bc9e9a73b0b4a9c823e9f2 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -225,7 +225,7 @@ QVariantMap AddToolChainOperation::addToolChain(const QVariantMap &map,
|
|||||||
const QString &supportedAbis, const KeyValuePairList &extra)
|
const QString &supportedAbis, const KeyValuePairList &extra)
|
||||||
{
|
{
|
||||||
// Sanity check: Does the Id already exist?
|
// Sanity check: Does the Id already exist?
|
||||||
QStringList valueKeys = FindValueOperation::findValue(map, id);
|
QStringList valueKeys = FindValueOperation::findValue(map, id.toUtf8());
|
||||||
bool hasId = false;
|
bool hasId = false;
|
||||||
foreach (const QString &k, valueKeys) {
|
foreach (const QString &k, valueKeys) {
|
||||||
if (k.endsWith(QString(QLatin1Char('/')) + QLatin1String(ID))) {
|
if (k.endsWith(QString(QLatin1Char('/')) + QLatin1String(ID))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user