diff options
author | Jocke <j.bygdell@gmail.com> | 2018-07-29 15:42:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:19:07 -0700 |
commit | 0fb086a4a53dcbd90af01a9faac271d312b485cf (patch) | |
tree | fca0304609cf92a9ae1720e6b8e5f7fcea3d30dd /mobile-widgets/qml/DiveDetailsEdit.qml | |
parent | bd8eec5c8e97050b130bb2d9f02162fe189edbda (diff) | |
download | subsurface-0fb086a4a53dcbd90af01a9faac271d312b485cf.tar.gz |
Mobile: fix saving new dive
With the new setup we need to know which state we are coming from
when we are saving cylinder related info. When we are adding
a new dive we explicitly should save cylinder data to the first cylinder.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 91d7a9e23..2faa62d22 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -73,6 +73,7 @@ Item { } function saveData() { + var state = diveDetailsPage.state diveDetailsPage.state = "view" // run the transition // join cylinder info from separate string into a list. if (usedCyl[0] != null) { @@ -114,7 +115,7 @@ Item { detailsEdit.weightText, detailsEdit.notesText, startpressure, endpressure, usedGas, usedCyl , detailsEdit.rating, - detailsEdit.visibility) + detailsEdit.visibility, state) // trigger the profile to be redrawn QMLProfile.diveId = dive_id |