summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/file.c b/file.c
index e738e61be..0a5fd7bf8 100644
--- a/file.c
+++ b/file.c
@@ -1133,7 +1133,17 @@ int parse_manual_file(const char *filename, int sepidx, int units, int dateforma
if (try_to_xslt_open_csv(filename, &mem, "manualCSV"))
return -1;
+ // right now input files created by XSLT processing report being v2 XML which makes
+ // the parse function abort until the dialog about importing v2 files has been shown.
+ // Until the XSLT has been updated we just override this check
+ //
+ // FIXME
+ //
+ bool remember = v2_question_shown;
+ v2_question_shown = true;
ret = parse_xml_buffer(filename, mem.buffer, mem.size, &dive_table, (const char **)params);
+ v2_question_shown = remember;
+
free(mem.buffer);
return ret;
}