summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-04 06:29:33 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-04 06:29:33 +0900
commit46112cbcd65872be43d0e05ffd7b49cc2972f854 (patch)
tree4b51c49e6f230885aed0f0171f2e2dbf640e0fcf /qt-ui/preferences.cpp
parentb38e2ab485756e33d4d8bbab8baf1969405a1d90 (diff)
downloadsubsurface-46112cbcd65872be43d0e05ffd7b49cc2972f854.tar.gz
Explicitly store UI values to prefs
This helper wasn't called as intended - but because of the syncSettings call which emits settingsChanged this only became visible for the default_filename. Next I need to clean up what is called for the settingsChanged signal. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index c4ca83e1f..9a2eff8f1 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -172,9 +172,11 @@ void PreferencesDialog::buttonClicked(QAbstractButton* button)
close();
break;
case QDialogButtonBox::Apply:
+ setPrefsFromUi();
syncSettings();
break;
case QDialogButtonBox::FirstButton:
+ setPrefsFromUi();
syncSettings();
close();
break;