Skip to content

Commit

Permalink
Set OK as default settings dialog button
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Nov 24, 2024
1 parent 94bb3c9 commit 4cd98ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scwx-qt/source/scwx/qt/ui/settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <QFontDatabase>
#include <QFontDialog>
#include <QGeoPositionInfo>
#include <QPushButton>
#include <QStandardItemModel>
#include <QToolButton>

Expand Down Expand Up @@ -291,6 +292,10 @@ SettingsDialog::SettingsDialog(QWidget* parent) :
{
ui->setupUi(this);

// Set OK as default
ui->buttonBox->button(QDialogButtonBox::StandardButton::Ok)
->setDefault(true);

// General
p->SetupGeneralTab();

Expand Down

0 comments on commit 4cd98ef

Please sign in to comment.