From ecf44bb2faccf080215ccb2f660b36316169ec60 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 15 Apr 2016 14:42:08 -0700 Subject: QML UI: quit on back key while showing dive list Make sure you save first, though. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mobile-widgets/qml') 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 + } } } -- cgit v1.2.3-70-g09d2