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>
This commit is contained in:
Dirk Hohndel 2019-09-28 15:26:08 -07:00
parent 1c24ac1a94
commit e7e21aec6b

View file

@ -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