diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-25 17:49:46 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-26 11:38:26 -0700 |
commit | d709cfb0b8877d23a8e42387c565b94fbbb497e9 (patch) | |
tree | 498f30b20025707cbc3d21d2a33c32973697c52a /mobile-widgets | |
parent | 65910177b26cc6fdc28f28b76be28e96c2200537 (diff) | |
download | subsurface-d709cfb0b8877d23a8e42387c565b94fbbb497e9.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 4 |
1 files changed, 3 insertions, 1 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: { + 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() } |