summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-10 12:27:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-10 12:27:00 -0700
commit78c5aa9f071ab56e56bf760e3e7fc7f0f0d1b1ff (patch)
tree1f71fe795dd2e793a91caa25edb9dc695f007a1a /dive.h
parentb73f29fea3ae88a06d8f773a6d48510520c127f0 (diff)
downloadsubsurface-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 746b94093..af141bbde 100644
--- a/dive.h
+++ b/dive.h
@@ -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);