From c97ed010c7f3f8f8615dba8be9d595a335eddc36 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 14 Feb 2016 12:17:24 -0800 Subject: QML UI: back key on dive list exits the app Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveList.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index a36758a98..21f0ceb00 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -195,10 +195,10 @@ MobileComponents.Page { } onBackRequested: { - if (diveListView.count > 0 && manager.credentialStatus != QMLManager.INVALID) { + if (startPageWrapper.visible && diveListView.count > 0 && manager.credentialStatus != QMLManager.INVALID) { manager.credentialStatus = oldStatus + event.accepted = true; } - event.accepted = true; } ScrollView { -- cgit v1.2.3-70-g09d2