Commit 0904f6e8 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

DebuggerItem: Fix restoration of ABIs

We want to restore even partially valid ABIs (e.g. those where
we are not 100% sure about the supported word width).

This change fixes Mingw compilers that went missing from their kits
after creator was reopened: The ABI did not get restored due to the
word width not being set and the default host ABI was set instead.
This then made the debugger no longer a match (msvc20x does not match
msys!) and thus getting removed from its kit.

Task-number: QTCREATORBUG-10463
Change-Id: Ie89c7aed2f092f3032860915c74655ff70dae77d
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 4da647ea
......@@ -79,7 +79,7 @@ DebuggerItem::DebuggerItem(const QVariantMap &data)
foreach (const QString &a, data.value(QLatin1String(DEBUGGER_INFORMATION_ABIS)).toStringList()) {
Abi abi(a);
if (abi.isValid())
if (!abi.isNull())
m_abis.append(abi);
}
}
......
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