diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-10-09 21:50:16 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-10-09 21:50:16 +0900 |
commit | a2afe4128082b603add2b2be83f97ff78e0d0169 (patch) | |
tree | 7ffc495137a6c1179a67e107a671ce8e6f7abb9b /main.c | |
parent | ffd3b8591dcb4b22dc318b6a39bb4e2ac8140f42 (diff) | |
download | subsurface-a2afe4128082b603add2b2be83f97ff78e0d0169.tar.gz |
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>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |