diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-01-02 16:38:04 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | c0f2563495afda0944a818dd6963282d3af4385a (patch) | |
tree | 1fb9321a328fade26dce8842263a5846f85239bf /mobile-widgets/qml | |
parent | 2a88ff0ffb7addd086157595e073358595d474b7 (diff) | |
download | subsurface-c0f2563495afda0944a818dd6963282d3af4385a.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 318d2b54d..d24b88d18 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -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") |