diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-21 19:10:31 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-23 07:50:03 -0700 |
commit | 65eefe7b599575bf401c0adc9c61e42bc56fc4c9 (patch) | |
tree | e01593eb7f4a089c466c35cd166971f7bae9f962 /qt-ui/preferences.cpp | |
parent | 82bcb1767c8ca1fdecc2bc40eb3a47fc1bd2a147 (diff) | |
download | subsurface-65eefe7b599575bf401c0adc9c61e42bc56fc4c9.tar.gz |
Animation speed is a value, not a boolean
This breaks compatibility with old preferences, but it's a single
key and not that very important so I don't think it's a bigger issue
I've renamed prefs.animation to prefs.animation_speed to denote
that it's a value, and not a state.
Also, fixed the places that were treating it as a state (on/off)
to treat it like a correct value.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r-- | qt-ui/preferences.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index cc5cfefb8..6000f453a 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -103,7 +103,7 @@ void PreferencesDialog::setUiFromPrefs() ui.show_average_depth->setChecked(prefs.show_average_depth); ui.vertical_speed_minutes->setChecked(prefs.units.vertical_speed_time == units::MINUTES); ui.vertical_speed_seconds->setChecked(prefs.units.vertical_speed_time == units::SECONDS); - ui.velocitySlider->setValue(prefs.animation); + ui.velocitySlider->setValue(prefs.animation_speed); QSortFilterProxyModel *filterModel = new QSortFilterProxyModel(); filterModel->setSourceModel(LanguageModel::instance()); @@ -344,7 +344,7 @@ void PreferencesDialog::loadSettings() s.endGroup(); s.beginGroup("Animations"); - GET_INT("animation_speed", animation); + GET_INT("animation_speed", animation_speed); s.endGroup(); s.beginGroup("Network"); |