From 6a6b992a7767c2ab4eee83a23d0c17caf979f66f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 13 Oct 2019 00:01:44 +0200 Subject: 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 --- core/subsurface-qt/DiveListNotifier.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/subsurface-qt') 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, -- cgit v1.2.3-70-g09d2