mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2365531c68
commit
1ee447b5a9
4 changed files with 28 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue