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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-07-17 15:58:26 +02:00 committed by Dirk Hohndel
parent 726d08c2f7
commit 94521c9958
6 changed files with 0 additions and 8 deletions

View file

@ -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: