From d709cfb0b8877d23a8e42387c565b94fbbb497e9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 25 Oct 2019 17:49:46 -0400 Subject: [PATCH] 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: { - showBusy() - manager.applyGpsData() globalDrawer.close() + showBusy() + diveList.diveListModel = null + manager.applyGpsData() diveModel.resetInternalData() manager.refreshDiveList() while (pageStack.depth > 1) { pageStack.pop() } + diveList.diveListModel = diveModel pageStack.push(diveList) hideBusy() }