summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-10-29 17:58:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-11-18 06:31:44 +0800
commit577e295d2fb5de19892bd4b67fc08b17e25cc55a (patch)
tree3ec1e12c875a71d29a4d1eea672c6c21f9ab37cd /mobile-widgets
parent88d5eccb17583ea81f09775074a2d263aae89090 (diff)
downloadsubsurface-577e295d2fb5de19892bd4b67fc08b17e25cc55a.tar.gz
Mark cache invalid to get data saved
Seems that we need to invalidate the cache to get the modifications actually saved. 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 9124434e0..7d88eedc5 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1351,6 +1351,9 @@ void QMLManager::pasteDiveData(int id)
return;
}
selective_copy_dive(m_copyPasteDive, d, what, false);
+
+ invalidate_dive_cache(d);
+ mark_divelist_changed(true);
changesNeedSaving();
}