mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
A file that we import should never become the default file we save to
Only files that are opened should be considered r/w. Files that are imported should be treated as if they were r/o. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ffd3b8591d
commit
a2afe41280
5 changed files with 18 additions and 14 deletions
4
main.c
4
main.c
|
@ -244,7 +244,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
no_filenames = FALSE;
|
||||
GError *error = NULL;
|
||||
parse_file(a, &error);
|
||||
parse_file(a, &error, TRUE);
|
||||
|
||||
if (error != NULL)
|
||||
{
|
||||
|
@ -256,7 +256,7 @@ int main(int argc, char **argv)
|
|||
if (no_filenames) {
|
||||
GError *error = NULL;
|
||||
const char *filename = subsurface_default_filename();
|
||||
parse_file(filename, &error);
|
||||
parse_file(filename, &error, TRUE);
|
||||
/* don't report errors - this file may not exist, but make
|
||||
sure we remember this as the filename in use */
|
||||
set_filename(filename, FALSE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue