Mobile: force update of ui on paste

Apparently this does the trick of updating the dive list when pasting
data on mobile. Tnx janmulder.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2018-12-16 11:34:05 +02:00 committed by mturkia
parent 3f8583de36
commit 10a0393b1b

View file

@ -1437,6 +1437,9 @@ void QMLManager::pasteDiveData(int id)
mark_divelist_changed(true);
changesNeedSaving();
setNotificationText("Paste");
int modelIdx = DiveListModel::instance()->getDiveIdx(id);
DiveListModel::instance()->updateDive(modelIdx, d);
}
void QMLManager::cancelDownloadDC()