From 9b2404fcb4b360a12a8f997a4b9111e5f44bf444 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 26 Aug 2016 16:52:51 -0300 Subject: Settings update: Move loadPreferences out of qt-helper.cpp Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferencesdialog.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'desktop-widgets/preferences') 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(); } -- cgit v1.2.3-70-g09d2