mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
fb24210ad9
commit
5002fa4887
1 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue