diff options
-rw-r--r-- | mobile-widgets/qml/StatisticsPage.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile-widgets/qml/StatisticsPage.qml b/mobile-widgets/qml/StatisticsPage.qml index 0a9a7bdea..74ec8ef4d 100644 --- a/mobile-widgets/qml/StatisticsPage.qml +++ b/mobile-widgets/qml/StatisticsPage.qml @@ -232,4 +232,13 @@ Kirigami.Page { Component.onCompleted: { statsManager.init(statsView, chartListModel) } + onBackRequested: { + // if the menu drawer is open, the back button should close it + if (globalDrawer.visible) { + globalDrawer.close() + } else { + showDiveList() + } + event.accepted = true; + } } |