mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
0e1b07bd6f
commit
4a8ae2a090
1 changed files with 1 additions and 0 deletions
|
@ -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); \
|
||||
|
|
Loading…
Add table
Reference in a new issue