From 5493e7cbf696c79758f2dacaba6d7109d00dea6b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 1 Jan 2020 23:45:52 +0100 Subject: mobile UI: use undo-command for adding dive. Instead of using the model, copy the code we have in the desktop version which manually creates a 15m/40min dive and passes that to the addDive undo command. Signed-off-by: Berthold Stoeger Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 3 --- 1 file changed, 3 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 6f4c5e129..ef102542e 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -228,9 +228,6 @@ Kirigami.Page { } function endEditMode() { - // if we were adding a dive, we need to remove it - if (state === "add") - manager.addDiveAborted(dive_id) // just cancel the edit/add state state = "view"; focus = false; -- cgit v1.2.3-70-g09d2