forked from qt-creator/qt-creator
ToolChain: Fix of-by-one error that broke ids
Change-Id: I5f7a45fdb54b8616b7cd49f1d80f70c3f218e512 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -196,7 +196,7 @@ bool ToolChain::fromMap(const QVariantMap &data)
|
|||||||
int pos = id.indexOf(QLatin1Char(':'));
|
int pos = id.indexOf(QLatin1Char(':'));
|
||||||
QTC_ASSERT(pos > 0, return false);
|
QTC_ASSERT(pos > 0, return false);
|
||||||
d->m_typeId = Core::Id::fromString(id.left(pos));
|
d->m_typeId = Core::Id::fromString(id.left(pos));
|
||||||
d->m_id = id.mid(pos).toUtf8();
|
d->m_id = id.mid(pos + 1).toUtf8();
|
||||||
|
|
||||||
const bool autoDetect = data.value(QLatin1String(AUTODETECT_KEY), false).toBool();
|
const bool autoDetect = data.value(QLatin1String(AUTODETECT_KEY), false).toBool();
|
||||||
d->m_detection = autoDetect ? AutoDetectionFromSettings : ManualDetection;
|
d->m_detection = autoDetect ? AutoDetectionFromSettings : ManualDetection;
|
||||||
|
Reference in New Issue
Block a user