summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-02 18:45:34 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2019-06-07 04:51:04 +0300
commit4a8ae2a090a68759ada5d6e30b006b275904957d (patch)
tree7beaf86701c9a8e2984787e4734c088b3ce73ded
parent0e1b07bd6ffcee4de28442d13304978977b88e46 (diff)
downloadsubsurface-4a8ae2a090a68759ada5d6e30b006b275904957d.tar.gz
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 <jani@apache.org> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/tab-widgets/TabDiveEquipment.cpp1
1 files changed, 1 insertions, 0 deletions
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); \