summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerkitconfigwidget.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-10-18 11:24:19 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-10-18 13:25:49 +0200
commitdf83d1574dad11c24dfeac0d070993d8dce7e288 (patch)
tree91841c426659af0f9736951b0375f9ec621343e5 /src/plugins/debugger/debuggerkitconfigwidget.cpp
parent2c2a940ae2d19aee5ac482c7f3bd4e420fcb42f4 (diff)
downloadqt-creator-df83d1574dad11c24dfeac0d070993d8dce7e288.tar.gz
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>
Diffstat (limited to 'src/plugins/debugger/debuggerkitconfigwidget.cpp')
-rw-r--r--src/plugins/debugger/debuggerkitconfigwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerkitconfigwidget.cpp b/src/plugins/debugger/debuggerkitconfigwidget.cpp
index 77c5431159..0119cebe07 100644
--- a/src/plugins/debugger/debuggerkitconfigwidget.cpp
+++ b/src/plugins/debugger/debuggerkitconfigwidget.cpp
@@ -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",