From a817f4b547b4193d31154fd0ff7f5190ccae76a5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 20 Sep 2011 21:50:26 -0700 Subject: Use the last (or only) filename on command line as default for saving Signed-off-by: Dirk Hohndel --- parse-xml.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'parse-xml.c') 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)); -- cgit v1.2.3-70-g09d2