mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
media: invalidate correct dive when removing picture
This fixes a bug: when deleting a picture when multiple dives were selected, possibly the wrong dive was invalidated. Thus, the dive wouldn't have been saved to the git repository. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6d187b5f4a
commit
f3b817c2d5
1 changed files with 1 additions and 1 deletions
|
@ -3596,7 +3596,7 @@ bool dive_remove_picture(struct dive *d, const char *filename)
|
|||
struct picture *temp = (*picture)->next;
|
||||
free_picture(*picture);
|
||||
*picture = temp;
|
||||
invalidate_dive_cache(current_dive);
|
||||
invalidate_dive_cache(d);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue