QML UI: back key on dive list exits the app

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-14 12:17:24 -08:00
parent f2c8aed07b
commit c97ed010c7

View file

@ -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 {