Mobile: replace clear()/addAllDives() pairs by reload()

The clear()/addAllDives() pair was bogus as the former didn't
clear the model (this is not possible anymore - the model
represents the core dive list) and the latter readded all
dives again.

Replace this by a reload() function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-08-14 18:09:17 +02:00 committed by bstoeger
parent 57b77c90b9
commit 0026aa3955
4 changed files with 12 additions and 38 deletions

View file

@ -390,8 +390,7 @@ Kirigami.Page {
manager.appendTextToLog("Save downloaded dives that were selected")
importModel.recordDives()
manager.saveChangesLocal()
diveModel.clear()
diveModel.addAllDives()
diveModel.reload()
pageStack.pop();
download.text = qsTr("Download")
divesDownloaded = false