diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-12-16 11:34:05 +0200 |
---|---|---|
committer | mturkia <miika.turkia@gmail.com> | 2018-12-21 09:13:37 +0200 |
commit | 10a0393b1bf96821a1ab72be4ed64965e353d2c0 (patch) | |
tree | 6f59fcec86064bc90036b9fcd824d9f6a8b29556 /mobile-widgets/qmlmanager.cpp | |
parent | 3f8583de36ddf6081d7230d7a24aa7a11594b215 (diff) | |
download | subsurface-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/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 3 |
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() |