summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-10 07:24:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-10 09:29:04 -0700
commit1ee447b5a95e97f5eb409ce67b0b06464138e572 (patch)
tree75070de371927ec4caa18eee6d5aed3c825b8594 /save-xml.c
parent2365531c686be62954c201a690d89e0eebdef456 (diff)
downloadsubsurface-1ee447b5a95e97f5eb409ce67b0b06464138e572.tar.gz
When saving only selected dives, only include referenced dive computers
Since we should have far fewer dive computers than dives this straight forward algorithm shouldn't cause any performance issues. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c
index 58f274722..6fd089f7c 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -501,7 +501,7 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
put_format(b, " <userid>%30s</userid>\n", prefs.userid);
/* save the dive computer nicknames, if any */
- call_for_each_dc(b, save_one_device);
+ call_for_each_dc(b, save_one_device, select_only);
if (autogroup)
put_format(b, " <autogroup state='1' />\n");
put_format(b, "</settings>\n");