diff --git a/Software/PC_Application/LibreVNA-GUI/preferences.cpp b/Software/PC_Application/LibreVNA-GUI/preferences.cpp
index f8a0842..3c11e0f 100644
--- a/Software/PC_Application/LibreVNA-GUI/preferences.cpp
+++ b/Software/PC_Application/LibreVNA-GUI/preferences.cpp
@@ -181,6 +181,10 @@ PreferencesDialog::PreferencesDialog(Preferences *pref, QWidget *parent) :
updateFromGUI();
accept();
});
+ connect(ui->buttonBox->button(QDialogButtonBox::Apply), &QPushButton::clicked, [=](){
+ // apply GUI state to settings
+ updateFromGUI();
+ });
connect(ui->buttonBox->button(QDialogButtonBox::Save), &QPushButton::clicked, [=](){
auto filename = QFileDialog::getSaveFileName(this, "Save preferences", "", "LibreVNA preferences files (*.vnapref)", nullptr, QFileDialog::DontUseNativeDialog);
if(filename.length() > 0) {
diff --git a/Software/PC_Application/LibreVNA-GUI/preferencesdialog.ui b/Software/PC_Application/LibreVNA-GUI/preferencesdialog.ui
index 3fe5bd4..2f7ba8b 100644
--- a/Software/PC_Application/LibreVNA-GUI/preferencesdialog.ui
+++ b/Software/PC_Application/LibreVNA-GUI/preferencesdialog.ui
@@ -106,9 +106,9 @@
0
- -334
- 683
- 897
+ 0
+ 679
+ 836
@@ -698,8 +698,8 @@
0
0
- 697
- 563
+ 450
+ 320
@@ -855,8 +855,8 @@
0
0
- 683
- 952
+ 437
+ 862
@@ -1278,8 +1278,8 @@
0
0
- 683
- 605
+ 402
+ 540
@@ -1617,8 +1617,8 @@
0
0
- 168
- 127
+ 138
+ 112
@@ -1707,8 +1707,8 @@
0
0
- 211
- 168
+ 194
+ 146
@@ -1792,7 +1792,7 @@
Qt::Horizontal
- QDialogButtonBox::Ok|QDialogButtonBox::Open|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save
+ QDialogButtonBox::Apply|QDialogButtonBox::Ok|QDialogButtonBox::Open|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save
false