Crash after full parcing file.
--HG-- branch : develop
This commit is contained in:
parent
084109488f
commit
601cfa47d6
|
@ -1409,6 +1409,7 @@ void MainWindow::Clear()
|
||||||
|
|
||||||
void MainWindow::FullParseFile()
|
void MainWindow::FullParseFile()
|
||||||
{
|
{
|
||||||
|
toolOptions->ClearPropertyBrowser();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SetEnabledGUI(true);
|
SetEnabledGUI(true);
|
||||||
|
|
|
@ -60,6 +60,15 @@ VToolOptionsPropertyBrowser::VToolOptionsPropertyBrowser(QDockWidget *parent)
|
||||||
connect(PropertyModel, &VPropertyModel::onDataChangedByEditor, this, &VToolOptionsPropertyBrowser::userChangedData);
|
connect(PropertyModel, &VPropertyModel::onDataChangedByEditor, this, &VToolOptionsPropertyBrowser::userChangedData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VToolOptionsPropertyBrowser::ClearPropertyBrowser()
|
||||||
|
{
|
||||||
|
PropertyModel->clear();
|
||||||
|
propertyToId.clear();
|
||||||
|
idToProperty.clear();
|
||||||
|
currentItem = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
|
void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,6 +46,7 @@ class VToolOptionsPropertyBrowser : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolOptionsPropertyBrowser(QDockWidget *parent);
|
VToolOptionsPropertyBrowser(QDockWidget *parent);
|
||||||
|
void ClearPropertyBrowser();
|
||||||
public slots:
|
public slots:
|
||||||
void itemClicked(QGraphicsItem *item);
|
void itemClicked(QGraphicsItem *item);
|
||||||
void userChangedData(VPE::VProperty* property);
|
void userChangedData(VPE::VProperty* property);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user