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.

(cherry picked from commit a907ab03ce)
This commit is contained in:
Roman Telezhynskyi 2021-05-26 10:40:21 +03:00
parent 00b436e21d
commit 18c804c962

View File

@ -604,6 +604,7 @@ void VAbstractPattern::Clear()
m_watermarkPath.clear();
m_companyName.clear();
m_units = Unit::LAST_UNIT_DO_NOT_USE;
modified = false;
}
//---------------------------------------------------------------------------------------------------------------------