Fix crash.
Closing pattern while refreshing pieces causing the app to crash.
This commit is contained in:
parent
6625fe4d85
commit
bcceeab089
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user