From 10a0393b1bf96821a1ab72be4ed64965e353d2c0 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 16 Dec 2018 11:34:05 +0200 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mobile-widgets/qmlmanager.cpp') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 05bea0a0e..8cc2ca940 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -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() -- cgit v1.2.3-70-g09d2