mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Removed the globals 'userid' and 'save_userid_local' variables
This is a preferences setting, it should belong to the preferences structure. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f14c14c383
commit
9598462830
9 changed files with 32 additions and 32 deletions
|
@ -508,8 +508,8 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
|
|||
|
||||
put_format(b, "<divelog program='subsurface' version='%d'>\n<settings>\n", VERSION);
|
||||
|
||||
if (save_userid_local)
|
||||
put_format(b, " <userid>%s</userid>\n", userid);
|
||||
if (prefs.save_userid_local)
|
||||
put_format(b, " <userid>%s</userid>\n", prefs.userid);
|
||||
|
||||
/* save the dive computer nicknames, if any */
|
||||
call_for_each_dc(b, save_one_device);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue