mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
mark_divelist_changed(): only update title if necessary
Only change the title if the changed status was updated. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
a17d1c7b85
commit
e414e0b334
1 changed files with 2 additions and 0 deletions
|
@ -1203,6 +1203,8 @@ void combine_trips(struct dive_trip *trip_a, struct dive_trip *trip_b)
|
|||
|
||||
void mark_divelist_changed(bool changed)
|
||||
{
|
||||
if (dive_list_changed == changed)
|
||||
return;
|
||||
dive_list_changed = changed;
|
||||
updateWindowTitle();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue