QmlDesigner.propertyEditor: end all transactions before detaching

This commit is contained in:
Thomas Hartmann
2010-04-13 15:03:38 +02:00
parent 31b60b45b7
commit 5c79e84569

View File

@@ -398,6 +398,7 @@ void PropertyEditor::changeValue(const QString &propertyName)
castedValue = QVariant(newColor);
}
qDebug() << value->value();
try {
if (!value->value().isValid()) { //reset
fxObjectNode.removeVariantProperty(propertyName);
@@ -787,6 +788,7 @@ void PropertyEditor::modelAttached(Model *model)
void PropertyEditor::modelAboutToBeDetached(Model *model)
{
QmlModelView::modelAboutToBeDetached(model);
m_currentType->m_propertyEditorTransaction->end();
resetView();
}