mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
65910177b2
commit
d709cfb0b8
1 changed files with 4 additions and 2 deletions
|
@ -296,14 +296,16 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
text: qsTr("Apply GPS fixes")
|
text: qsTr("Apply GPS fixes")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
showBusy()
|
|
||||||
manager.applyGpsData()
|
|
||||||
globalDrawer.close()
|
globalDrawer.close()
|
||||||
|
showBusy()
|
||||||
|
diveList.diveListModel = null
|
||||||
|
manager.applyGpsData()
|
||||||
diveModel.resetInternalData()
|
diveModel.resetInternalData()
|
||||||
manager.refreshDiveList()
|
manager.refreshDiveList()
|
||||||
while (pageStack.depth > 1) {
|
while (pageStack.depth > 1) {
|
||||||
pageStack.pop()
|
pageStack.pop()
|
||||||
}
|
}
|
||||||
|
diveList.diveListModel = diveModel
|
||||||
pageStack.push(diveList)
|
pageStack.push(diveList)
|
||||||
hideBusy()
|
hideBusy()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue