aboutsummaryrefslogtreecommitdiffstats
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.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 6d5739a9b..00d8e544a 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -19,6 +19,7 @@ Kirigami.ApplicationWindow {
preferredHeight: Math.round(Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1.5))
maximumHeight: Kirigami.Units.gridUnit * 2
}
+
property alias oldStatus: manager.oldStatus
property alias notificationText: manager.notificationText
property alias syncToCloud: manager.syncToCloud
@@ -436,7 +437,17 @@ if you have network connectivity and want to sync your data to cloud storage."),
easing.type: Easing.OutQuad
}
}
+ }
+ pageStack.onCurrentItemChanged: {
+ // This is called whenever the user navigates using the breadcrumbs in the header
+
+ // 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" &&
+ (detailsWindow.state === 'edit' || detailsWindow.state === 'add')) {
+ detailsWindow.endEditMode()
+ }
}
QMLManager {