mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove all the no longer necessary code that aborts read of first V2 file
This was a poorly implemented hack when we executed the reverse geo lookup in the main thread and opening a V2 file could take a very long time. We need to do the "Welcome" message quite differently. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bd11988f74
commit
ccc9d80015
9 changed files with 4 additions and 75 deletions
9
file.c
9
file.c
|
@ -1168,16 +1168,7 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue