diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-11-19 11:52:33 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 07:00:34 +0900 |
commit | 732d5a9fbd2b7d72610604a1b065ebbd9ea55960 (patch) | |
tree | 70e1dc0a231970cf646e595536adc14a375b775b /desktop-widgets/preferences/preferences_log.cpp | |
parent | 95a0a0f5a6038d5a73775e2060e29d09d0953d7e (diff) | |
download | subsurface-732d5a9fbd2b7d72610604a1b065ebbd9ea55960.tar.gz |
desktop UI: add preference for making salinity editable
Create a checkbox in the Preferences: General screen that enables or disables
editing of the salinity data. This preference is saved with all the other
preferences.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferences_log.cpp')
-rw-r--r-- | desktop-widgets/preferences/preferences_log.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_log.cpp b/desktop-widgets/preferences/preferences_log.cpp index 9025945e3..d9f33e6c7 100644 --- a/desktop-widgets/preferences/preferences_log.cpp +++ b/desktop-widgets/preferences/preferences_log.cpp @@ -70,6 +70,7 @@ void PreferencesLog::refreshSettings() ui->show_average_depth->setChecked(prefs.show_average_depth); ui->displayinvalid->setChecked(qPrefDisplay::display_invalid_dives()); ui->extraEnvironmentalDefault->setChecked(prefs.extraEnvironmentalDefault); + ui->salinityEditDefault->setChecked(prefs.salinityEditDefault); } void PreferencesLog::syncSettings() @@ -87,4 +88,5 @@ void PreferencesLog::syncSettings() qPrefLog::set_show_average_depth(ui->show_average_depth->isChecked()); qPrefDisplay::set_display_invalid_dives(ui->displayinvalid->isChecked()); qPrefLog::set_extraEnvironmentalDefault(ui->extraEnvironmentalDefault->isChecked()); + qPrefLog::set_salinityEditDefault(ui->salinityEditDefault->isChecked()); } |