diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-10 12:27:00 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-10 12:27:00 -0700 |
commit | 78c5aa9f071ab56e56bf760e3e7fc7f0f0d1b1ff (patch) | |
tree | 1f71fe795dd2e793a91caa25edb9dc695f007a1a /dive.h | |
parent | b73f29fea3ae88a06d8f773a6d48510520c127f0 (diff) | |
download | subsurface-78c5aa9f071ab56e56bf760e3e7fc7f0f0d1b1ff.tar.gz |
Change behavior for the existing filename
Previously we always picked the last file that was openend as the file
name to save to. That seems counterintuitive when importing files or when
opening multiple files. Especially if Subsurface was executed without a
file on the command line and we are using the default file.
Now we only remember a file name if it was the first one to ever be
openend or if it was used in save-as.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -379,7 +379,7 @@ static inline struct dive *get_dive(unsigned int nr) extern void parse_xml_init(void); extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error); -extern void set_filename(const char *filename); +extern void set_filename(const char *filename, gboolean force); extern void parse_file(const char *filename, GError **error); |