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:
Tobias Hunger
2015-07-14 11:12:14 +02:00
parent 753b273e89
commit aeb154db74

View File

@@ -196,7 +196,7 @@ bool ToolChain::fromMap(const QVariantMap &data)
int pos = id.indexOf(QLatin1Char(':'));
QTC_ASSERT(pos > 0, return false);
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();
d->m_detection = autoDetect ? AutoDetectionFromSettings : ManualDetection;