From 22b0d3b6aab5798009550e2b4d2a4e196ed36f33 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 18 Jan 2018 20:08:25 +0200 Subject: [PATCH] Debugger: Search for kit also by display name The Id is not visible to users. Allow to pass name instead (first match will be used). Change-Id: I6bcd7ce50297e373b5b4d8a553009a27ff43cd24 Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index e0fa782c390..8e46a9735e3 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1133,6 +1133,8 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, } } else if (key == "kit") { kit = KitManager::kit(Id::fromString(val)); + if (!kit) + kit = KitManager::kit(Utils::equal(&Kit::displayName, val)); } else if (key == "server") { startMode = AttachToRemoteServer; remoteChannel = remoteChannel;