forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user