diff options
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index dc2087a34..b815a04cc 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -49,6 +49,9 @@ MobileComponents.Page { checkable: true iconName: checked ? "view-readermode" : "document-edit" onTriggered: { + if (diveDetailsWindow.state == "edit") { + manager.commitChanges(dive_id, suit, buddy, divemaster, notes); + } diveDetailsWindow.state = checked ? "edit" : "view"; contextDrawer.close(); // close drawer? |