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:
parent
3f8583de36
commit
10a0393b1b
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user