From 78c5aa9f071ab56e56bf760e3e7fc7f0f0d1b1ff Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 10 Sep 2012 12:27:00 -0700 Subject: 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 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index a2c24ec99..01306b1bf 100644 --- a/main.c +++ b/main.c @@ -243,7 +243,7 @@ int main(int argc, char **argv) parse_file(filename, &error); /* don't report errors - this file may not exist, but make sure we remember this as the filename in use */ - set_filename(filename); + set_filename(filename, FALSE); } report_dives(imported); -- cgit v1.2.3-70-g09d2