forked from qt-creator/qt-creator
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 <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
3ea921c216
commit
22b0d3b6aa
@@ -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;
|
||||
|
Reference in New Issue
Block a user