diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-08-29 03:08:47 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-29 03:09:10 -0700 |
commit | 2d87a657d248c1c6d4dd6a805bbf90c98589798a (patch) | |
tree | 3f0e3a9f6c5e072a67c936e3bbf5d17957431816 /desktop-widgets/preferences/preferencesdialog.cpp | |
parent | 4bb72160a6323e1ab3f3d9ea2c7f90c21088347f (diff) | |
download | subsurface-2d87a657d248c1c6d4dd6a805bbf90c98589798a.tar.gz |
Revert "desktop-widgets: remove QSettings from desktop-widgets"
This reverts commit 321a920a9873a3828a24c1b28cf8eb5fe1bff2cb.
It appears that the load_xxx functions aren't called, so while the correct
values are stored to the settings, they aren't retrieved. Let's revert while
this gets fixed.
Fixes #1609
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.cpp')
-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 3b16260d2..49b1f87bd 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -32,6 +32,12 @@ void PreferencesDialog::emitSettingsChanged() PreferencesDialog::PreferencesDialog() { + //FIXME: This looks wrong. + //QSettings s; + //s.beginGroup("GeneralSettings"); + //s.setValue("default_directory", system_default_directory()); + //s.endGroup(); + setWindowIcon(QIcon(":subsurface-icon")); pagesList = new QListWidget(); pagesStack = new QStackedWidget(); |