mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
726d08c2f7
commit
94521c9958
6 changed files with 0 additions and 8 deletions
|
@ -1018,14 +1018,12 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char *
|
|||
if (done && ++bp < endptr && *bp != '{' && strstr(bp, "{{")) {
|
||||
done = false;
|
||||
record_dive_to_table(dive, devdata->download_table);
|
||||
mark_divelist_changed(true);
|
||||
dive = uemis_start_dive(deviceid);
|
||||
}
|
||||
}
|
||||
if (is_log) {
|
||||
if (dive->dc.diveid) {
|
||||
record_dive_to_table(dive, devdata->download_table);
|
||||
mark_divelist_changed(true);
|
||||
} else { /* partial dive */
|
||||
free(dive);
|
||||
free(buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue