From d2928a137cabab30973a96a71beee9fd840db516 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 6 Feb 2016 12:08:16 -0800 Subject: QML UI: end edit mode when leaving the edit page This should fix the problem when using the back key to exit the edit page. Requires a patch to the mobile components that isn't upstream, yet. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetails.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index ef51a71b2..e06c7211d 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -43,6 +43,13 @@ MobileComponents.Page { } ] + popAction: Action { + onTriggered: { + print("popped") + state = "view" + } + } + mainAction: Action { iconName: state !== "view" ? "dialog-cancel" : "document-edit" onTriggered: { -- cgit v1.2.3-70-g09d2