OSDN Git Service

QmlDesigner.nodeInstances: crash fix
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 2 Dec 2010 14:13:45 +0000 (15:13 +0100)
committercon <qtc-committer@nokia.com>
Tue, 7 Dec 2010 11:38:50 +0000 (12:38 +0100)
PathView creates problems and we do not properly support it anyway.
We just create a dummy instance, instead.

Task-number: QTCREATORBUG-3251
Reviewed-by: Marco Bubke
src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp

index acf2c0f..11da2bf 100644 (file)
@@ -135,6 +135,8 @@ Internal::ObjectNodeInstance::Pointer NodeInstance::createInstance(const NodeMet
 
     if (!metaInfo.isValid())
         instance = Internal::DummyNodeInstance::create();
+    else if (metaInfo.isSubclassOf("Qt/PathView", 4, 7))
+        instance = Internal::DummyNodeInstance::create();
     else if (metaInfo.isSubclassOf("Qt/QWidget", 4, 7))
         instance = Internal::DummyNodeInstance::create();
     else if (metaInfo.isSubclassOf("Qt/QGraphicsView", 4, 7))