mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
cffa9e8d06
commit
3437fc1a64
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue