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>
This commit is contained in:
Dirk Hohndel 2016-05-03 11:52:37 -07:00
parent cffa9e8d06
commit 3437fc1a64

View file

@ -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
}