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:
Berthold Stoeger 2017-12-11 22:28:02 +01:00 committed by Dirk Hohndel
parent a17d1c7b85
commit e414e0b334

View file

@ -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();
}