From c0f2563495afda0944a818dd6963282d3af4385a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 2 Jan 2020 16:38:04 +0100 Subject: mobile: don't disconnect model on download That makes no sense anymore. Signed-off-by: Berthold Stoeger Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'mobile-widgets/qml') 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") -- cgit v1.2.3-70-g09d2