From a2afe4128082b603add2b2be83f97ff78e0d0169 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 9 Oct 2012 21:50:16 +0900 Subject: 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 --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index bc7bf7af1..aa418e637 100644 --- a/main.c +++ b/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); -- cgit v1.2.3-70-g09d2