Fix crash.

Closing pattern while refreshing pieces causing the app to crash.
This commit is contained in:
Roman Telezhynskyi 2021-04-10 15:54:11 +03:00
parent 6625fe4d85
commit bcceeab089
2 changed files with 8 additions and 0 deletions

View File

@ -690,6 +690,13 @@ void VPattern::customEvent(QEvent *event)
} }
} }
//---------------------------------------------------------------------------------------------------------------------
void VPattern::Clear()
{
m_parsing = true;
VAbstractPattern::Clear();
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VNodeDetail VPattern::ParseDetailNode(const QDomElement &domElement) const VNodeDetail VPattern::ParseDetailNode(const QDomElement &domElement) const
{ {

View File

@ -98,6 +98,7 @@ public:
virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const override; virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const override;
virtual QString GenerateSuffix() const override; virtual QString GenerateSuffix() const override;
virtual void Clear() override;
bool IsReadOnly() const; bool IsReadOnly() const;
void SetReadOnly(bool rOnly); void SetReadOnly(bool rOnly);