diff options
author | Gehad <gehadelrobey@gmail.com> | 2014-04-07 19:12:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-07 13:06:15 -0700 |
commit | 3125e0e69513a421c6821d1bd0f545501ede85b1 (patch) | |
tree | 238c17907ede3286c42f8e412facfc54415276db /pref.h | |
parent | 0bf79e216f312010b78c81904e12b2feadcdaa14 (diff) | |
download | subsurface-3125e0e69513a421c6821d1bd0f545501ede85b1.tar.gz |
Fix incorrect behavior in preference window
When doing some changes in the preference window and clicking "Apply", the
'Close without saving' button is supposed to restore the previous values.
However some fields were not restored correctly.
- The Animations Slider was never restored to its initial value.
(A new member in the pref struct was added - pref.animation)
- The 'Font' and 'Font size' were restored correctly to the previous
values but their effects weren't restored to the UI and that required to
open the prefrences window again and press ok.
Fixes #481
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r-- | pref.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -33,6 +33,7 @@ struct preferences { short calc_ndl_tts; short gflow; short gfhigh; + short animation; bool gf_low_at_maxdepth; short display_invalid_dives; short unit_system; |