From e414e0b334b1bdff7779fbe05d5207f614c2c79d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 11 Dec 2017 22:28:02 +0100 Subject: mark_divelist_changed(): only update title if necessary Only change the title if the changed status was updated. Signed-off-by: Berthold Stoeger --- core/divelist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') 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(); } -- cgit v1.2.3-70-g09d2