mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Clear divecomputer saved status before saving the nicknames to XML
In commit c7169bd24f22 "Fix nickname saving in XML file to deal with utf8 characters" I added the helper function to clear the "this divecomputer has already been saved"-flag. But then forgot to call it from save_dives before saving the divecomputer nicknames. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d720e133d8
commit
c2e003975e
1 changed files with 3 additions and 0 deletions
|
@ -522,6 +522,9 @@ void save_dives(const char *filename)
|
|||
update_dive(current_dive);
|
||||
|
||||
fprintf(f, "<divelog program='subsurface' version='%d'>\n<settings>\n", VERSION);
|
||||
|
||||
/* save the dive computer nicknames, if any */
|
||||
clear_dc_saved_status();
|
||||
for_each_dive(i, dive) {
|
||||
struct divecomputer *dc = &dive->dc;
|
||||
while (dc) {
|
||||
|
|
Loading…
Reference in a new issue