mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use the last (or only) filename on command line as default for saving
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8a8ad3f997
commit
a817f4b547
3 changed files with 12 additions and 1 deletions
|
@ -1380,7 +1380,9 @@ void parse_xml_file(const char *filename, GError **error)
|
|||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* we assume that the last (or only) filename passed as argument is a
|
||||
* great filename to use as default when saving the dives */
|
||||
set_filename(filename);
|
||||
reset_all();
|
||||
dive_start();
|
||||
traverse(xmlDocGetRootElement(doc));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue