diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-03 19:03:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-03 09:04:23 -0800 |
commit | 5002fa48870170c8993a713b5d0b92408cd52ab7 (patch) | |
tree | d7cdc1142e66a0d3b5c7b7412e2714692a47e5fc /desktop-widgets | |
parent | fb24210ad9430262a20c4f55f7007000f2c3bee9 (diff) | |
download | subsurface-5002fa48870170c8993a713b5d0b92408cd52ab7.tar.gz |
PreferencesDialog.cpp: store 'default_directory' in QSettings
This is needed only on Windows, so that the uninstaller knows
which directory to delete.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-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( |