mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue