mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b73f29fea3
commit
78c5aa9f07
4 changed files with 9 additions and 10 deletions
2
main.c
2
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue