diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-20 21:50:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-09-21 11:35:20 -0700 |
commit | a817f4b547b4193d31154fd0ff7f5190ccae76a5 (patch) | |
tree | 27d82a086d9b653badc422f7531fd8323570f2e9 /parse-xml.c | |
parent | 8a8ad3f9978c47d9ba10085236e6e6722949b5e2 (diff) | |
download | subsurface-a817f4b547b4193d31154fd0ff7f5190ccae76a5.tar.gz |
Use the last (or only) filename on command line as default for saving
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c index 22ab8458e..1eb6e95fd 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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)); |