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>
This commit is contained in:
Tomaz Canabrava 2015-11-01 12:14:40 -02:00 committed by Dirk Hohndel
parent a48e6241dc
commit 9f93b9a934

View file

@ -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(