From 3d79244dd5d1ab375faa61f4d96b180985ff06f4 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Sat, 28 Jan 2023 15:17:41 +0900 Subject: [PATCH] SessionNameInputDialog: change default button to "... and Open" When one create/rename/clone a sesion, they will likely use the session. Change-Id: I41d4e3c24833009a42385146fd2bb5a719465eba Reviewed-by: Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/sessiondialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp index 53edd115511..745a876230a 100644 --- a/src/plugins/projectexplorer/sessiondialog.cpp +++ b/src/plugins/projectexplorer/sessiondialog.cpp @@ -71,6 +71,7 @@ SessionNameInputDialog::SessionNameInputDialog(QWidget *parent) auto buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this); m_okButton = buttons->button(QDialogButtonBox::Ok); m_switchToButton = new QPushButton; + m_switchToButton->setDefault(true); buttons->addButton(m_switchToButton, QDialogButtonBox::AcceptRole); connect(m_switchToButton, &QPushButton::clicked, this, [this] { m_usedSwitchTo = true;