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>
This commit is contained in:
Berthold Stoeger 2020-01-01 23:45:52 +01:00 committed by Dirk Hohndel
parent 2ad7b26f4b
commit 5493e7cbf6
3 changed files with 21 additions and 13 deletions

View file

@ -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();