diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-15 14:42:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-15 14:42:08 -0700 |
commit | ecf44bb2faccf080215ccb2f660b36316169ec60 (patch) | |
tree | f59e3dd2c5291fceae95405cc585b62f14c8c36f /mobile-widgets/qml/DiveList.qml | |
parent | 71d74f9e3c7cb49ab93aef035dbf7735b5ae3454 (diff) | |
download | subsurface-ecf44bb2faccf080215ccb2f660b36316169ec60.tar.gz |
QML UI: quit on back key while showing dive list
Make sure you save first, though.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 906eb9445..a89b05c8b 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -278,5 +278,10 @@ Kirigami.ScrollablePage { manager.credentialStatus = oldStatus event.accepted = true; } + if (!startPageWrapper.visible) { + manager.quit() + // we shouldn't come back from there, but just in case + event.accepted = true + } } } |