summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-10-18 13:10:08 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-10-18 11:29:27 +0000
commit89dbb44fcb49a36a559507ce3be21da875129077 (patch)
treec6ec526f339492d19d0331def9905259aa298626 /src/plugins/debugger
parent482c53d11aeb50116b368cbc4c374b048519cd3f (diff)
downloadqt-creator-89dbb44fcb49a36a559507ce3be21da875129077.tar.gz
Debugger: Prohibit multi selection on debugger presets
To avoid confusion regarding context menu items limit the selection mode to single selection. Change-Id: I220d97fee65180a497f21e5921f832076235acb5 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 0fbb1fb735..cdbe82a7a5 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -870,6 +870,7 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
engineManagerView->setSettings(ICore::settings(), "Debugger.SnapshotView");
engineManagerView->setIconSize(QSize(10, 10));
engineManagerView->setModel(m_engineManager.model());
+ engineManagerView->setSelectionMode(QAbstractItemView::SingleSelection);
auto engineManagerWindow = addSearch(engineManagerView);
engineManagerWindow->setWindowTitle(tr("Debugger Perspectives"));