summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-21 20:48:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-21 20:48:11 -0700
commit5aa8b52f82399bd4343a8213927c7e9694def1bc (patch)
treefd1786f5b12e77da72dd2c0e6ee67b8dc943b7b7 /save-xml.c
parent6d3a4ec9b28ac794ae8e9a6231272e2ebe573af5 (diff)
downloadsubsurface-5aa8b52f82399bd4343a8213927c7e9694def1bc.tar.gz
Remove Gtk crud
The DEBUGFILE logic isn't needed anymore. Nor are helpers dealing with model / datastructure updates. Nor conditional compiles to use Gtk instead of Qt. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/save-xml.c b/save-xml.c
index 233482969..0e770ec62 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -467,7 +467,7 @@ void save_dive(FILE *f, struct dive *dive)
fprintf(f, " rating='%d'", dive->rating);
if (dive->visibility)
fprintf(f, " visibility='%d'", dive->visibility);
- if (dive->dive_tags)
+ if (dive->dive_tags)
save_tags(f, dive->dive_tags);
show_date(f, dive->when);
@@ -575,9 +575,6 @@ void save_dives_logic(const char *filename, const gboolean select_only)
if (!f)
return;
- /* Flush any edits of current dives back to the dives! */
- update_dive(current_dive);
-
fprintf(f, "<divelog program='subsurface' version='%d'>\n<settings>\n", VERSION);
/* save the dive computer nicknames, if any */