Commit aeb154db authored by Tobias Hunger's avatar Tobias Hunger

ToolChain: Fix of-by-one error that broke ids

Change-Id: I5f7a45fdb54b8616b7cd49f1d80f70c3f218e512
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 753b273e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment