diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-19 06:13:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-19 10:34:44 -0700 |
commit | ac0c1eb5e17d33db52d3aa803bcfaaa4c53f1a3e (patch) | |
tree | 6a406c59d133cb5192c82b2f2997ec076ecc9aa5 /mobile-widgets | |
parent | 1e86662e4a30ceebca0faf4a12169ce25740c4d4 (diff) | |
download | subsurface-ac0c1eb5e17d33db52d3aa803bcfaaa4c53f1a3e.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 3 |
1 files changed, 3 insertions, 0 deletions
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 } } ] |