Commit 513b884d authored by hjk's avatar hjk

Debugger: Silence warning on empty debugger settings in legitim cases

Change-Id: Ibaa830f615a3d739a198a9550cd955dc9151c009
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 841aa198
......@@ -319,6 +319,8 @@ DebuggerItem DebuggerKitInformation::debuggerItem(const ProjectExplorer::Kit *k)
// <value type="QString" key="Debugger.Information">{75ecf347-f221-44c3-b613-ea1d29929cd4}</value>
QVariant id = k->value(DEBUGGER_INFORMATION);
if (!id.isValid())
return DebuggerItem();
QString pathOrUid;
if (id.type() == QVariant::Map) // 2.x
......@@ -326,7 +328,10 @@ DebuggerItem DebuggerKitInformation::debuggerItem(const ProjectExplorer::Kit *k)
else if (id.type() == QVariant::String) // 3.x
pathOrUid = id.toString();
DebuggerItem *item;
if (pathOrUid.isEmpty())
return DebuggerItem();
DebuggerItem *item = 0;
if (pathOrUid.startsWith(QLatin1Char('{')))
item = DebuggerItemManager::debuggerFromId(id);
else
......
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