diff --git a/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp b/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp index 8763b4db578df417dec2c4171aab0c0b2b7b5bc3..4b04eb4b23e846bad044746612469fa13666b20a 100644 --- a/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp +++ b/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp @@ -140,9 +140,9 @@ NodeInstanceView::~NodeInstanceView() \param model Model to which the view is attached */ -bool isSkippedNode(const ModelNode &node) +bool isSkippedRootNode(const ModelNode &node) { - static QStringList skipList = QStringList() << "Qt.ListModel" << "QtQuick.ListModel"; + static QStringList skipList = QStringList() << "Qt.ListModel" << "QtQuick.ListModel" << "Qt.ListModel" << "QtQuick.ListModel"; if (skipList.contains(node.type())) return true; @@ -150,6 +150,12 @@ bool isSkippedNode(const ModelNode &node) return false; } + +bool isSkippedNode(const ModelNode &) +{ + return false; +} + void NodeInstanceView::modelAttached(Model *model) { AbstractView::modelAttached(model); @@ -157,7 +163,7 @@ void NodeInstanceView::modelAttached(Model *model) m_lastCrashTime.start(); connect(m_nodeInstanceServer.data(), SIGNAL(processCrashed()), this, SLOT(handleChrash())); - if (!isSkippedNode(rootModelNode())) + if (!isSkippedRootNode(rootModelNode())) nodeInstanceServer()->createScene(createCreateSceneCommand()); } @@ -195,7 +201,7 @@ void NodeInstanceView::restartProcess() m_nodeInstanceServer = new NodeInstanceServerProxy(this, m_runModus); connect(m_nodeInstanceServer.data(), SIGNAL(processCrashed()), this, SLOT(handleChrash())); - if (!isSkippedNode(rootModelNode())) + if (!isSkippedRootNode(rootModelNode())) nodeInstanceServer()->createScene(createCreateSceneCommand()); } }