summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-10-02 11:09:13 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-30 10:36:51 -0700
commit8a54a46779bac174cb9216d1c8aa76a3bfc1bc84 (patch)
treee9e769fb2a300b854935a4eff986fd206b119d54 /desktop-widgets/preferences/preferencesdialog.cpp
parentd9595ad266021575522f73bb87dfc51517461d59 (diff)
downloadsubsurface-8a54a46779bac174cb9216d1c8aa76a3bfc1bc84.tar.gz
Preferences: random fixes
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.cpp')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp
index bf751bff7..5b4cc560e 100644
--- a/desktop-widgets/preferences/preferencesdialog.cpp
+++ b/desktop-widgets/preferences/preferencesdialog.cpp
@@ -100,6 +100,8 @@ void PreferencesDialogV2::applyRequested()
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
page->syncSettings();
}
+ emit settingsChanged();
+ accept();
}
void PreferencesDialogV2::cancelRequested()
@@ -107,6 +109,7 @@ void PreferencesDialogV2::cancelRequested()
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
page->refreshSettings();
}
+ reject();
}
void PreferencesDialogV2::defaultsRequested()
@@ -115,4 +118,6 @@ void PreferencesDialogV2::defaultsRequested()
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
page->refreshSettings();
}
+ emit settingsChanged();
+ accept();
}