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>
This commit is contained in:
Dirk Hohndel 2019-10-25 17:49:46 -04:00
parent 65910177b2
commit d709cfb0b8

View file

@ -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()
}