From 9f93b9a934e23be05322ff47a0c6a8fa3b8b3adb Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 1 Nov 2015 12:14:40 -0200 Subject: [PATCH] Preferences: Call LoadPreferences from whitin the new dialog When I removed the old preferences dialog, I forgot to load them again. The code is in the wrong place: it should be on every and each preferences dialog (or on the main preferences) Beware if you used this wip code before, I may have destroyed your preferences. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferencesdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index 9041668f8..a7934a96d 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -8,6 +8,8 @@ #include "preferences_graph.h" #include "preferences_network.h" +#include "subsurface-core/qthelper.h" + #include #include #include @@ -29,6 +31,8 @@ void PreferencesDialog::emitSettingsChanged() PreferencesDialog::PreferencesDialog() { + loadPreferences(); //TODO: Move this code out of the qthelper.cpp + pagesList = new QListWidget(); pagesStack = new QStackedWidget(); buttonBox = new QDialogButtonBox(