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 /core/settings/qPrefLog.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 'core/settings/qPrefLog.cpp')
-rw-r--r-- | core/settings/qPrefLog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/settings/qPrefLog.cpp b/core/settings/qPrefLog.cpp index c35abe252..97d400e3c 100644 --- a/core/settings/qPrefLog.cpp +++ b/core/settings/qPrefLog.cpp @@ -16,6 +16,7 @@ void qPrefLog::loadSync(bool doSync) disk_default_file_behavior(doSync); disk_use_default_file(doSync); disk_extraEnvironmentalDefault(doSync); + disk_salinityEditDefault(doSync); disk_show_average_depth(doSync); } @@ -54,5 +55,7 @@ HANDLE_PREFERENCE_BOOL(Log, "extraEnvironmentalDefault", extraEnvironmentalDefau HANDLE_PREFERENCE_BOOL(Log, "use_default_file", use_default_file); +HANDLE_PREFERENCE_BOOL(Log, "salinityEditDefault", salinityEditDefault); + HANDLE_PREFERENCE_BOOL(Log, "show_average_depth", show_average_depth); |