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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-06 12:08:16 -08:00
parent 6d8d956853
commit d2928a137c

View file

@ -43,6 +43,13 @@ MobileComponents.Page {
}
]
popAction: Action {
onTriggered: {
print("popped")
state = "view"
}
}
mainAction: Action {
iconName: state !== "view" ? "dialog-cancel" : "document-edit"
onTriggered: {