Handle XSLT based imports correctly

XSLT conversions create V2 XML files, but we shouldn't abort when we parse
those without having the user informed about the potential slowness - all
XSLT based imports are slow, anyway.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-04-22 13:20:27 -07:00
parent 959077c66b
commit 6f7e3d04cb
3 changed files with 10 additions and 5 deletions

1
dive.h
View file

@ -51,6 +51,7 @@ extern "C" {
extern int last_xml_version;
extern bool abort_read_of_old_file;
extern bool v2_question_shown;
extern bool imported_via_xslt;
enum dive_comp_type {OC, CCR, PSCR, FREEDIVE, NUM_DC_TYPE}; // Flags (Open-circuit and Closed-circuit-rebreather) for setting dive computer type
enum cylinderuse {OC_GAS, DILUENT, OXYGEN, NUM_GAS_USE}; // The different uses for cylinders