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>
This commit is contained in:
Lubomir I. Ivanov 2015-11-03 19:03:34 +02:00 committed by Dirk Hohndel
parent fb24210ad9
commit 5002fa4887

View file

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