summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-14 12:17:24 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-14 12:17:24 -0800
commitc97ed010c7f3f8f8615dba8be9d595a335eddc36 (patch)
tree8a8e1f4d1cd74b6e2d235b475bcb28501d1e8620 /qt-mobile
parentf2c8aed07be8c45def8172956adae3554a0f322c (diff)
downloadsubsurface-c97ed010c7f3f8f8615dba8be9d595a335eddc36.tar.gz
QML UI: back key on dive list exits the app
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveList.qml4
1 files changed, 2 insertions, 2 deletions
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 {