From 5c0b864a554ca60b069db52b62352bd34b98792d Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <dirk@hohndel.org>
Date: Fri, 27 Dec 2019 10:29:25 -0800
Subject: [PATCH] mobile UI: add back button to planner menu

Otherwise you are stuck in there.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
---
 mobile-widgets/qml/main.qml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 41fe2a677..07180ee90 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -506,6 +506,13 @@ if you have network connectivity and want to sync your data to cloud storage."),
 				Kirigami.Action {
 					text: qsTr("Dive planner")
 
+					Kirigami.Action {
+						icon {
+							name: ":/go-previous-symbolic"
+						}
+						text: qsTr("Back")
+						onTriggered: globalDrawer.scrollViewItem.pop()
+					}
 					Kirigami.Action {
 						text: qsTr("Setup")
 						onTriggered: {