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

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