summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-mobile/qml/main.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index b578ffe51..c011ba4c1 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -126,6 +126,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
text: "Add dive manually"
onTriggered: {
+ returnTopPage() // otherwise odd things happen with the page stack
startAddDive()
}
}
@@ -174,6 +175,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
text: "Show GPS fixes"
onTriggered: {
+ returnTopPage()
manager.populateGpsData();
stackView.push(gpsWindow)
}