From d709cfb0b8877d23a8e42387c565b94fbbb497e9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 25 Oct 2019 17:49:46 -0400 Subject: Mobile: try harder to get the right dive list This should ensure that the dive list correctly repopulates after the model was updated. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 730df292e..ae50d8dc7 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -296,14 +296,16 @@ Kirigami.ApplicationWindow { } text: qsTr("Apply GPS fixes") onTriggered: { + globalDrawer.close() showBusy() + diveList.diveListModel = null manager.applyGpsData() - globalDrawer.close() diveModel.resetInternalData() manager.refreshDiveList() while (pageStack.depth > 1) { pageStack.pop() } + diveList.diveListModel = diveModel pageStack.push(diveList) hideBusy() } -- cgit v1.2.3-70-g09d2