Commit 82865ac7 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.model: add sanity check and include fix

Only emit if the view is really attached.

Reviewed-by: Marco Bubke
parent a210978e
...@@ -370,7 +370,7 @@ void AbstractView::emitCustomNotification(const QString &identifier, const QList ...@@ -370,7 +370,7 @@ void AbstractView::emitCustomNotification(const QString &identifier, const QList
void AbstractView::emitInstancePropertyChange(const QList<QPair<ModelNode, QString> > &propertyList) void AbstractView::emitInstancePropertyChange(const QList<QPair<ModelNode, QString> > &propertyList)
{ {
if (model()) if (model() && nodeInstanceView() == this)
model()->m_d->notifyInstancePropertyChange(propertyList); model()->m_d->notifyInstancePropertyChange(propertyList);
} }
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "nodelistproperty.h" #include "nodelistproperty.h"
#include "qmltextgenerator.h" #include "qmltextgenerator.h"
#include "variantproperty.h" #include "variantproperty.h"
#include <propertymetainfo.h>
#include "model.h" #include "model.h"
using namespace QmlDesigner; using namespace QmlDesigner;
......
Supports Markdown
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