configure_dialog: Focus the button box on start

Without this, the Reset All Settings button would be selected by default
master
lat9nq 2023-07-21 23:56:01 +07:00
parent 1d4f813c6a
commit 33d118509a
1 changed files with 3 additions and 0 deletions

@ -97,6 +97,9 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry_,
adjustSize(); adjustSize();
ui->selectorList->setCurrentRow(0); ui->selectorList->setCurrentRow(0);
// Selects the leftmost button on the bottom bar (Cancel as of writing)
ui->buttonBox->setFocus();
} }
ConfigureDialog::~ConfigureDialog() = default; ConfigureDialog::~ConfigureDialog() = default;