diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-11-01 12:14:40 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-02 12:53:18 -0800 |
commit | 9f93b9a934e23be05322ff47a0c6a8fa3b8b3adb (patch) | |
tree | 78a55fc97f94f9c23b2b795eb152f45f9c8bfc8d /desktop-widgets/preferences | |
parent | a48e6241dc86c722032f7cd15bcffb565d5dbb4f (diff) | |
download | subsurface-9f93b9a934e23be05322ff47a0c6a8fa3b8b3adb.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferencesdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <QVBoxLayout> #include <QHBoxLayout> #include <QListWidget> @@ -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( |