From c82f4487f985a2d3fd832a1acce60fa052f9f246 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 10 Feb 2019 17:37:06 +0100 Subject: Undo: implement undo of depth and duration editing This was a bit different from the other editing commands: 1) Only the current dive is edited not all selected dives. Therefore, create a function that turns the current dive into a one-element list. 2) The profile has to be replot. Here, likewise, create a function to do that. Signed-off-by: Berthold Stoeger --- core/subsurface-qt/DiveListNotifier.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/subsurface-qt/DiveListNotifier.h b/core/subsurface-qt/DiveListNotifier.h index 10cc4bb4d..d9ef4152b 100644 --- a/core/subsurface-qt/DiveListNotifier.h +++ b/core/subsurface-qt/DiveListNotifier.h @@ -14,6 +14,8 @@ // Use "enum class" to not polute the global name space. enum class DiveField { DATETIME, + DEPTH, + DURATION, AIR_TEMP, WATER_TEMP, DIVESITE, -- cgit v1.2.3-70-g09d2