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 /gtk-gui.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 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |