From 5002fa48870170c8993a713b5d0b92408cd52ab7 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 3 Nov 2015 19:03:34 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferencesdialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop-widgets/preferences') 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 #include #include +#include #include 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( -- cgit v1.2.3-70-g09d2