From ac0c1eb5e17d33db52d3aa803bcfaaa4c53f1a3e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Apr 2016 06:13:21 -0700 Subject: QML UI: prevent changing pages while showing the edit/add overlay sheet If you switch back to the dive list by swiping horizontally you stay in edit/add mode and then can't select a dive on the dive list. This way you have to discard or save the edit, first. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 5a320f055..bda3dddb4 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -46,14 +46,17 @@ Kirigami.Page { } } PropertyChanges { target: detailsEditScroll; opened: false } + PropertyChanges { target: pageStack.contentItem; interactive: true } }, State { name: "edit" PropertyChanges { target: detailsEditScroll; opened: true } + PropertyChanges { target: pageStack.contentItem; interactive: false } }, State { name: "add" PropertyChanges { target: detailsEditScroll; opened: true } + PropertyChanges { target: pageStack.contentItem; interactive: false } } ] -- cgit v1.2.3-70-g09d2