From 1ee447b5a95e97f5eb409ce67b0b06464138e572 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 10 Jun 2015 07:24:34 -0700 Subject: 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 --- save-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'save-xml.c') 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, " %30s\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, " \n"); put_format(b, "\n"); -- cgit v1.2.3-70-g09d2