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()
|
||||
{
|
||||
toolOptions->ClearPropertyBrowser();
|
||||
try
|
||||
{
|
||||
SetEnabledGUI(true);
|
||||
|
|
|
@ -60,6 +60,15 @@ VToolOptionsPropertyBrowser::VToolOptionsPropertyBrowser(QDockWidget *parent)
|
|||
connect(PropertyModel, &VPropertyModel::onDataChangedByEditor, this, &VToolOptionsPropertyBrowser::userChangedData);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolOptionsPropertyBrowser::ClearPropertyBrowser()
|
||||
{
|
||||
PropertyModel->clear();
|
||||
propertyToId.clear();
|
||||
idToProperty.clear();
|
||||
currentItem = nullptr;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
|
||||
{
|
||||
|
|
|
@ -46,6 +46,7 @@ class VToolOptionsPropertyBrowser : public QObject
|
|||
Q_OBJECT
|
||||
public:
|
||||
VToolOptionsPropertyBrowser(QDockWidget *parent);
|
||||
void ClearPropertyBrowser();
|
||||
public slots:
|
||||
void itemClicked(QGraphicsItem *item);
|
||||
void userChangedData(VPE::VProperty* property);
|
||||
|
|
Loading…
Reference in New Issue
Block a user