summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-22 16:49:14 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 11:38:26 -0700
commitdc5f22d04705989b53adf4613aff9def766ab33e (patch)
treecafe225c9b23d7937aca650d5f90dbdebed7435d /mobile-widgets/qml/main.qml
parente03d3ac5d67dba0ac8343730f4f903a4c1fb7583 (diff)
downloadsubsurface-dc5f22d04705989b53adf4613aff9def766ab33e.tar.gz
Mobile: reset dive list after applying GPS fixes
This way new fixes are actually shown when the user looks at the dive list after applying the GPS fixes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index c338fa04c..63c071766 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -288,7 +288,10 @@ Kirigami.ApplicationWindow {
}
text: qsTr("Apply GPS fixes")
onTriggered: {
- manager.applyGpsData();
+ manager.applyGpsData()
+ globalDrawer.close()
+ diveModel.resetInternalData()
+ manager.refreshDiveList()
}
}
Kirigami.Action {