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
@ -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…
x
Reference in New Issue
Block a user