diff options
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 |