Collect garbage only after successfully parse. This way wrongly accused items
have one more time to restore a reference. --HG-- branch : develop
This commit is contained in:
parent
add6d9facf
commit
d291051dfb
|
@ -146,13 +146,6 @@ void VPattern::CreateEmptyFile()
|
||||||
this->firstChild());
|
this->firstChild());
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
void VPattern::setXMLContent(const QString &fileName)
|
|
||||||
{
|
|
||||||
VAbstractPattern::setXMLContent(fileName);
|
|
||||||
GarbageCollector();
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* @brief Parse parse file.
|
* @brief Parse parse file.
|
||||||
|
|
|
@ -67,7 +67,6 @@ public:
|
||||||
|
|
||||||
QVector<quint32> GetActivePPPieces() const;
|
QVector<quint32> GetActivePPPieces() const;
|
||||||
|
|
||||||
virtual void setXMLContent(const QString &fileName) override;
|
|
||||||
virtual bool SaveDocument(const QString &fileName, QString &error) override;
|
virtual bool SaveDocument(const QString &fileName, QString &error) override;
|
||||||
|
|
||||||
QRectF ActiveDrawBoundingRect() const;
|
QRectF ActiveDrawBoundingRect() const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user