summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-08-26 16:52:51 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-08-27 11:40:45 -0700
commit9b2404fcb4b360a12a8f997a4b9111e5f44bf444 (patch)
tree3c8cb2f24394c3dca2a3a563682466a9b3612c7e /desktop-widgets/preferences/preferencesdialog.cpp
parent8f178301d8b93f50c38cd00b7cc47a259e1fed43 (diff)
downloadsubsurface-9b2404fcb4b360a12a8f997a4b9111e5f44bf444.tar.gz
Settings update: Move loadPreferences out of qt-helper.cpp
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.cpp')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp
index 3b92dff5e..3d989199a 100644
--- a/desktop-widgets/preferences/preferencesdialog.cpp
+++ b/desktop-widgets/preferences/preferencesdialog.cpp
@@ -31,8 +31,6 @@ void PreferencesDialog::emitSettingsChanged()
PreferencesDialog::PreferencesDialog()
{
- loadPreferences(); //TODO: Move this code out of the qthelper.cpp
-
//FIXME: This looks wrong.
//QSettings s;
//s.beginGroup("GeneralSettings");
@@ -124,7 +122,6 @@ 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();
@@ -144,7 +141,6 @@ void PreferencesDialog::defaultsRequested()
Q_FOREACH(AbstractPreferencesWidget *page, pages) {
page->refreshSettings();
}
- loadPreferences(); //TODO: Move loadPreferences out of qthelper.cpp
emit settingsChanged();
accept();
}