summaryrefslogtreecommitdiffstats
path: root/gtk-gui.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 /gtk-gui.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 'gtk-gui.c')
-rw-r--r--gtk-gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index cf271be92..e5ac16f94 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -336,7 +336,7 @@ static void file_open(GtkWidget *w, gpointer data)
GError *error = NULL;
filename = fn_glist->data;
- parse_file(filename, &error);
+ parse_file(filename, &error, TRUE);
if (error != NULL)
{
report_error(error);
@@ -1371,7 +1371,7 @@ static GtkEntry *dive_computer_device(GtkWidget *vbox)
static void do_import_file(gpointer data, gpointer user_data)
{
GError *error = NULL;
- parse_file(data, &error);
+ parse_file(data, &error, FALSE);
if (error != NULL)
{
@@ -1440,7 +1440,7 @@ static GError *setup_uemis_import(device_data_t *data)
#ifdef DEBUGFILE
fprintf(debugfile, "xml buffer \"%s\"\n\n", buf);
#endif
- parse_xml_buffer("Uemis Download", buf, strlen(buf), &error);
+ parse_xml_buffer("Uemis Download", buf, strlen(buf), &error, FALSE);
set_uemis_last_dive(uemis_max_dive_data);
#if UEMIS_DEBUG
fprintf(debugfile, "uemis_max_dive_data: %s\n", uemis_max_dive_data);