summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-11 22:28:02 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-01-04 08:21:43 -0800
commite414e0b334b1bdff7779fbe05d5207f614c2c79d (patch)
tree3ce78e9d7a8144bbaf303428b85b4dcf1a849047 /core/divelist.c
parenta17d1c7b8510996b77242bfa8c656f90bf5150e1 (diff)
downloadsubsurface-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.c2
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();
}