From 685f8a7d70cffb59d516b94c0b25f6b9c418a400 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 5 Feb 2017 11:27:30 +0200 Subject: [PATCH] Create reserve copy only if a file is not a template. --HG-- branch : develop --- src/libs/ifc/xml/vabstractconverter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/ifc/xml/vabstractconverter.cpp b/src/libs/ifc/xml/vabstractconverter.cpp index ab21c1743..4fa5dd5cf 100644 --- a/src/libs/ifc/xml/vabstractconverter.cpp +++ b/src/libs/ifc/xml/vabstractconverter.cpp @@ -70,7 +70,10 @@ QString VAbstractConverter::Convert() return m_convertedFileName; } - ReserveFile(); + if (not IsReadOnly()) + { + ReserveFile(); + } if (m_tmpFile.open()) {