diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-21 12:28:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-21 12:28:20 -0700 |
commit | d94fb7ca6b4fc17dacd069522d7fad00aa69e088 (patch) | |
tree | 06afae13d3b894aa835b78af88d270aabd2c4c5f /parse-xml.c | |
parent | 51486040686592965bd7a70cf52767350cfde5f6 (diff) | |
parent | a817f4b547b4193d31154fd0ff7f5190ccae76a5 (diff) | |
download | subsurface-d94fb7ca6b4fc17dacd069522d7fad00aa69e088.tar.gz |
Merge branch 'quit-handling' of git://github.com/dirkhh/subsurface
* 'quit-handling' of git://github.com/dirkhh/subsurface:
Use the last (or only) filename on command line as default for saving
Show the "save changes" dialog before the main window is destroyed
Check for changes at regular 'quit' events as well
Catch changes to the info of the current dive when quitting
Tracking changes to tanks is trivial
Simplistic first attempt to get changes saved when quitting subsurface
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)); |