diff options
| author | 2020-01-01 23:45:52 +0100 | |
|---|---|---|
| committer | 2020-03-10 09:25:57 -0700 | |
| commit | 5493e7cbf696c79758f2dacaba6d7109d00dea6b (patch) | |
| tree | 8ed0c6b332bd7dd734c1e83811a879f9be583745 /mobile-widgets/qml | |
| parent | 2ad7b26f4b6b2fc131c57f0a014bd174b303aa90 (diff) | |
| download | subsurface-5493e7cbf696c79758f2dacaba6d7109d00dea6b.tar.gz | |
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 <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
| -rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 3 |
1 files changed, 0 insertions, 3 deletions
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; |