diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-12-11 22:28:02 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-04 08:21:43 -0800 |
commit | e414e0b334b1bdff7779fbe05d5207f614c2c79d (patch) | |
tree | 3ce78e9d7a8144bbaf303428b85b4dcf1a849047 /core/divelist.c | |
parent | a17d1c7b8510996b77242bfa8c656f90bf5150e1 (diff) | |
download | subsurface-e414e0b334b1bdff7779fbe05d5207f614c2c79d.tar.gz |
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>
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/divelist.c b/core/divelist.c index 7712968ff..117791e52 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -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(); } |