From e7e21aec6b71d6767deebfe3e00cdf14e6293082 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 28 Sep 2019 15:26:08 -0700 Subject: Mobile: fix reloading dive list after download There was a sad typo in commit eecca6aab0 ("Mobile: replace model-reset by row-addition in DiveListModel::reload()"). Additionally, we need to also refresh the dive list so that the new dives are shown. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 541b7263c..4c43d7b24 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -382,7 +382,8 @@ Kirigami.Page { manager.appendTextToLog("Save downloaded dives that were selected") importModel.recordDives() manager.saveChangesLocal() - diveModel.resetInternaData() + diveModel.resetInternalData() + manager.refreshDiveList() pageStack.pop(); download.text = qsTr("Download") divesDownloaded = false -- cgit v1.2.3-70-g09d2