From a907ab03cee8931b1a1a649c296a615a8c46efc7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 26 May 2021 10:40:21 +0300 Subject: [PATCH] Fix closing a pattern file. Because we did not properly cleared VAbstractPattern class state Valentina thought that after closing the pattern file we still have unsaved changes. --- src/libs/ifc/xml/vabstractpattern.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/ifc/xml/vabstractpattern.cpp b/src/libs/ifc/xml/vabstractpattern.cpp index 926c76fba..999ef4f5a 100644 --- a/src/libs/ifc/xml/vabstractpattern.cpp +++ b/src/libs/ifc/xml/vabstractpattern.cpp @@ -604,6 +604,7 @@ void VAbstractPattern::Clear() m_watermarkPath.clear(); m_companyName.clear(); m_units = Unit::LAST_UNIT_DO_NOT_USE; + modified = false; } //---------------------------------------------------------------------------------------------------------------------