Commit 98c096c8 authored by Matthias Möller's avatar Matthias Möller

fix possible crash, because of double deletion (e.g. crash during termination under windows)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18851 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ac97df0d
...@@ -88,6 +88,7 @@ void PropertyModel::removeProperty(QModelIndexList selectedIndices) ...@@ -88,6 +88,7 @@ void PropertyModel::removeProperty(QModelIndexList selectedIndices)
QWidget* w = propertyVisualizers[it->row()]->getWidget(); QWidget* w = propertyVisualizers[it->row()]->getWidget();
widgets->layout()->removeWidget(w); widgets->layout()->removeWidget(w);
delete propertyVisualizers[it->row()]; delete propertyVisualizers[it->row()];
propertyVisualizers[it->row()] = 0;
deleteIndices.push_back(it->row()); deleteIndices.push_back(it->row());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment