diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-05-03 11:52:37 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-03 11:52:37 -0700 |
commit | 3437fc1a64e5659528f1a0343d53a667147ffc71 (patch) | |
tree | 55aa64cb450dbad15ea59e2dff6a30b2a7d4d187 /mobile-widgets/qml | |
parent | cffa9e8d0633c660de32d44e59761497d12f4c73 (diff) | |
download | subsurface-3437fc1a64e5659528f1a0343d53a667147ffc71.tar.gz |
QML UI: make sure Kirigami doesn't exit by mistake
The ApplicationWindow has the backRequested signal and if we don't accept
that event, Kirigami will exit the app which is never what we want.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index b4ab897e9..36064bc21 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -319,6 +319,11 @@ Kirigami.ApplicationWindow { } + onBackRequested: { + print("main back requested -- make sure Kirigami doesn't quit" + event + " acc " + event.accepted) + event.accepted = true + } + QMLManager { id: manager } |