summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index ae22e073e..93793156d 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -476,6 +476,14 @@ if you have network connectivity and want to sync your data to cloud storage."),
pageStack.onCurrentItemChanged: {
// This is called whenever the user navigates using the breadcrumbs in the header
+ // disable the left swipe to go back when on the map page
+ stackView.interactive = pageStack.currentItem.objectName !== mapPage.objectName
+
+ // is there a better way to reload the map markers instead of doing that
+ // every time the map page is shown - e.g. link to the dive list model somehow?
+ if (pageStack.currentItem.objectName === mapPage.objectName)
+ mapPage.reloadMap()
+
// In case we land on any page, not being the DiveDetails (which can be
// in multiple states, such as add, edit or view), just end the edit/add mode
if (pageStack.currentItem.objectName !== "DiveDetails" &&