From 94521c9958f5416311318826450825fcbaede4ce Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 17 Jul 2019 15:58:26 +0200 Subject: Cleanup: remove bogus mark_divelist_changed() calls The parsers / downloaders parse into a separate table and do not directly change the divelist. Therefore, they shouldn't call mark_divelist_changed(). Likewise split_dive_at() doesn't modify the dive list and therefore shouldn't call this function. Calling the function has the unwanted side-effect that undoing the change will not clear the *-symbol in the title of the main window. Signed-off-by: Berthold Stoeger --- core/ostctools.c | 1 - 1 file changed, 1 deletion(-) (limited to 'core/ostctools.c') diff --git a/core/ostctools.c b/core/ostctools.c index 21c58e537..4ebb85015 100644 --- a/core/ostctools.c +++ b/core/ostctools.c @@ -190,7 +190,6 @@ void ostctools_import(const char *file, struct dive_table *divetable, struct tri add_extra_data(&ostcdive->dc, "Serial", ostcdive->dc.serial); } record_dive_to_table(ostcdive, divetable); - mark_divelist_changed(true); sort_dive_table(divetable); close_out: -- cgit v1.2.3-70-g09d2