diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-09-28 15:26:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-02 08:04:49 -0700 |
commit | e7e21aec6b71d6767deebfe3e00cdf14e6293082 (patch) | |
tree | d407d4d09fb5f5a29d342b4f277e030a362cc942 | |
parent | 1c24ac1a945fe663e3e6267131025f0141259f97 (diff) | |
download | subsurface-e7e21aec6b71d6767deebfe3e00cdf14e6293082.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 3 |
1 files changed, 2 insertions, 1 deletions
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 |