diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-14 12:17:24 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-14 12:17:24 -0800 |
commit | c97ed010c7f3f8f8615dba8be9d595a335eddc36 (patch) | |
tree | 8a8e1f4d1cd74b6e2d235b475bcb28501d1e8620 | |
parent | f2c8aed07be8c45def8172956adae3554a0f322c (diff) | |
download | subsurface-c97ed010c7f3f8f8615dba8be9d595a335eddc36.tar.gz |
QML UI: back key on dive list exits the app
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 4 |
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 { |