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 /subsurfacestartup.c | |
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 'subsurfacestartup.c')
-rw-r--r-- | subsurfacestartup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c index 1cf52e3b0..8d5e609a9 100644 --- a/subsurfacestartup.c +++ b/subsurfacestartup.c @@ -26,7 +26,7 @@ struct preferences default_prefs = { .gflow = 30, .gfhigh = 75, .font_size = 14.0, - .show_invalid = FALSE, + .display_invalid_dives = FALSE, .show_sac = FALSE, }; |