From 4a8ae2a090a68759ada5d6e30b006b275904957d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 2 Jun 2019 18:45:34 +0200 Subject: Desktop: invalidate dive cache on equipment edit Owing to the recent undo-changes, the git id was not invalidated when accepting changes to cylinders and weights. Do this in the MODIFY_DIVES macro for now. Reported-by: Jan Iversen Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/TabDiveEquipment.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/tab-widgets') diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp index 557ed42b5..c0569a82b 100644 --- a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp +++ b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp @@ -152,6 +152,7 @@ void TabDiveEquipment::editWeightWidget(const QModelIndex &index) #define MODIFY_DIVES(DIVES, WHAT) \ do { \ for (dive *mydive: DIVES) { \ + invalidate_dive_cache(mydive); \ WHAT; \ } \ mark_divelist_changed(true); \ -- cgit v1.2.3-70-g09d2