mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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:
parent
6d8d956853
commit
d2928a137c
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@ MobileComponents.Page {
|
|||
}
|
||||
|
||||
]
|
||||
popAction: Action {
|
||||
onTriggered: {
|
||||
print("popped")
|
||||
state = "view"
|
||||
}
|
||||
}
|
||||
|
||||
mainAction: Action {
|
||||
iconName: state !== "view" ? "dialog-cancel" : "document-edit"
|
||||
onTriggered: {
|
||||
|
|
Loading…
Reference in a new issue