diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-01-01 23:45:52 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | 5493e7cbf696c79758f2dacaba6d7109d00dea6b (patch) | |
tree | 8ed0c6b332bd7dd734c1e83811a879f9be583745 /mobile-widgets/qmlmanager.h | |
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/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index c5d480283..8916e9d42 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -200,8 +200,7 @@ public slots: bool toggleCylinders(bool toggle); bool toggleWeights(bool toggle); void undoDelete(int id); - QString addDive(); - void addDiveAborted(int id); + int addDive(); void applyGpsData(); void populateGpsData(); void cancelDownloadDC(); |