forked from qt-creator/qt-creator
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user