DebuggerKitInformation: Invalid ids are ok

Invalid Ids are used to for "No Debugger", so do not try to fix
those values.

Change-Id: I141f969524e1faffa66a22c2a08ef18ec4d7fc23
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2013-10-18 11:24:19 +02:00
parent 2c2a940ae2
commit df83d1574d

View File

@@ -193,6 +193,9 @@ void DebuggerKitInformation::fix(Kit *k)
// This can be Id, binary path, but not "auto" anymore.
const QVariant rawId = k->value(DebuggerKitInformation::id());
if (rawId.isNull()) // No debugger set, that is fine.
return;
if (rawId.type() == QVariant::String) {
if (!DebuggerItemManager::findById(rawId)) {
qWarning("Unknown debugger id %s in kit %s",