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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Tasuku Suzuki
2023-01-28 15:17:41 +09:00
parent 53696ee71e
commit 3d79244dd5

View File

@@ -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;