summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-12-16 11:34:05 +0200
committerGravatar mturkia <miika.turkia@gmail.com>2018-12-21 09:13:37 +0200
commit10a0393b1bf96821a1ab72be4ed64965e353d2c0 (patch)
tree6f59fcec86064bc90036b9fcd824d9f6a8b29556 /mobile-widgets
parent3f8583de36ddf6081d7230d7a24aa7a11594b215 (diff)
downloadsubsurface-10a0393b1bf96821a1ab72be4ed64965e353d2c0.tar.gz
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp3
1 files changed, 3 insertions, 0 deletions
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()