diff options
author | Patrick Valsecchi <patrick@thus.ch> | 2013-11-20 13:40:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-21 08:11:40 -0800 |
commit | 4c4a7a6d968fa27de72f1510c55d327a7e919d7c (patch) | |
tree | 8efda997313870e3b433a8a49b94a47af830fc54 /qt-gui.cpp | |
parent | e0b376622c505ee631b87b54aefa0130bbfa1237 (diff) | |
download | subsurface-4c4a7a6d968fa27de72f1510c55d327a7e919d7c.tar.gz |
Refactoring of the configuration handling.
Before, when clicking the OK button on the preferences GUI, we were
updating in-memory preferences from the GUI, saving them to the
configuration file from the GUI, reloading from the file to the
in-memory preferences. Then, to add to the ducplication, when the
application was exiting, some fields were saved again.
Basically the first step and the last step were useless appart from
the fact the the other steps where missing a few fields here and there.
This patch removes the first step and fixes the missing fields.
Signed-off-by: Patrick Valsecchi <patrick@thus.ch>
ACKed-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index a943bff76..c868f6648 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -116,9 +116,6 @@ void init_ui(int *argcp, char ***argvp) } QSettings s; - s.beginGroup("GeneralSettings"); - prefs.default_filename = getSetting(s, "default_filename"); - s.endGroup(); s.beginGroup("DiveComputer"); default_dive_computer_vendor = getSetting(s, "dive_computer_vendor"); default_dive_computer_product = getSetting(s,"dive_computer_product"); |