From 3437fc1a64e5659528f1a0343d53a667147ffc71 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 3 May 2016 11:52:37 -0700 Subject: 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 --- mobile-widgets/qml/main.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mobile-widgets') 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 } -- cgit v1.2.3-70-g09d2