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>
This commit is contained in:
Dirk Hohndel 2016-04-19 06:13:21 -07:00
parent 1e86662e4a
commit ac0c1eb5e1

View file

@ -46,14 +46,17 @@ Kirigami.Page {
} }
} }
PropertyChanges { target: detailsEditScroll; opened: false } PropertyChanges { target: detailsEditScroll; opened: false }
PropertyChanges { target: pageStack.contentItem; interactive: true }
}, },
State { State {
name: "edit" name: "edit"
PropertyChanges { target: detailsEditScroll; opened: true } PropertyChanges { target: detailsEditScroll; opened: true }
PropertyChanges { target: pageStack.contentItem; interactive: false }
}, },
State { State {
name: "add" name: "add"
PropertyChanges { target: detailsEditScroll; opened: true } PropertyChanges { target: detailsEditScroll; opened: true }
PropertyChanges { target: pageStack.contentItem; interactive: false }
} }
] ]