summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-10-13 00:01:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 11:36:23 -0700
commit6a6b992a7767c2ab4eee83a23d0c17caf979f66f (patch)
tree77f7767d37fd86487ce15d6900ddcd82572b0c57 /core/subsurface-qt
parentd16d57577dae2f97e8e1a8bb33812718039ba605 (diff)
downloadsubsurface-6a6b992a7767c2ab4eee83a23d0c17caf979f66f.tar.gz
Desktop: make salinity a field known to the undo system
The undo system sets updates individual dive fields on redo respectively undo. Make salinity such a field, since it is changed on replanning a dive. To do this, break out the "update salinity" functionality into its own function, add an entry to the DiveField enum and add the corresponding switch-case. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r--core/subsurface-qt/DiveListNotifier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveListNotifier.h b/core/subsurface-qt/DiveListNotifier.h
index 64ef71481..11da468cf 100644
--- a/core/subsurface-qt/DiveListNotifier.h
+++ b/core/subsurface-qt/DiveListNotifier.h
@@ -28,6 +28,7 @@ enum class DiveField {
TAGS,
MODE,
NOTES,
+ SALINITY
};
enum class TripField {
LOCATION,