summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-09 21:50:16 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-09 21:50:16 +0900
commita2afe4128082b603add2b2be83f97ff78e0d0169 (patch)
tree7ffc495137a6c1179a67e107a671ce8e6f7abb9b /main.c
parentffd3b8591dcb4b22dc318b6a39bb4e2ac8140f42 (diff)
downloadsubsurface-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.c4
1 files changed, 2 insertions, 2 deletions
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);