diff options
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferencesdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index d8798879a..6f3523c0b 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -16,6 +16,7 @@ #include <QStackedWidget> #include <QDialogButtonBox> #include <QAbstractButton> +#include <QSettings> #include <QDebug> PreferencesDialog* PreferencesDialog::instance() @@ -33,6 +34,11 @@ PreferencesDialog::PreferencesDialog() { loadPreferences(); //TODO: Move this code out of the qthelper.cpp + QSettings s; + s.beginGroup("GeneralSettings"); + s.setValue("default_directory", system_default_directory()); + s.endGroup(); + pagesList = new QListWidget(); pagesStack = new QStackedWidget(); buttonBox = new QDialogButtonBox( |