mobile: don't disconnect model on download

That makes no sense anymore.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Berthold Stoeger 2020-01-02 16:38:04 +01:00 committed by Dirk Hohndel
parent 2a88ff0ffb
commit c0f2563495

View file

@ -436,18 +436,13 @@ Kirigami.Page {
manager.appendTextToLog("Save downloaded dives that were selected")
busy = true
rootItem.showBusy("Save selected dives")
manager.appendTextToLog("temporary disconnecting dive list model")
diveList.diveListModel = null
manager.appendTextToLog("Record dives")
importModel.recordDives()
// it's important to save the changes because the app could get killed once
// it's in the background - and the freshly downloaded dives would get lost
manager.saveChangesLocal()
manager.appendTextToLog("resetting model and refreshing the dive list")
diveModel.resetInternalData()
manager.refreshDiveList()
manager.appendTextToLog("pageStack popping Download page")
pageStack.pop()
manager.appendTextToLog("setting up the dive list model again")
diveList.diveListModel = diveModel
manager.appendTextToLog("pageStack switching to dive list")
showDiveList()
download.text = qsTr("Download")