aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar K. \"pestophagous\" Heller <pestophagous@gmail.com>2015-11-15 20:55:50 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-15 22:22:41 -0800
commit99ed01e5710840976890551da4b02e630a8abee3 (patch)
tree127254b2430f11f0010092a757cbc2bee8f05707 /desktop-widgets
parentf44c98d9c5fc6b87087d454aab2c23da3072376b (diff)
downloadsubsurface-99ed01e5710840976890551da4b02e630a8abee3.tar.gz
Make "Save Preferences" button mutate "prefs" struct.
Clicking Save in the preferences dialog will now cause the GUI to immediately reflect the latest settings (just as it behaved in 4.5). Signed-off-by: K. Heller <pestophagous@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp
index 141bc1c65..34df09b27 100644
--- a/desktop-widgets/preferences/preferencesdialog.cpp
+++ b/desktop-widgets/preferences/preferencesdialog.cpp
@@ -124,6 +124,7 @@ void PreferencesDialog::applyRequested(bool closeIt)
connect(page, &AbstractPreferencesWidget::settingsChanged, this, &PreferencesDialog::settingsChanged, Qt::UniqueConnection);
page->syncSettings();
}
+ loadPreferences(); //TODO: Move loadPreferences out of qthelper.cpp
emit settingsChanged();
if (closeIt)
accept();
@@ -143,6 +144,7 @@ void PreferencesDialog::defaultsRequested()
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
page->refreshSettings();
}
+ loadPreferences(); //TODO: Move loadPreferences out of qthelper.cpp
emit settingsChanged();
accept();
}