From 3d58487df227f8c5302bb3565734e3f3e6657bc3 Mon Sep 17 00:00:00 2001
From: Marco Bubke <marco.bubke@nokia.com>
Date: Wed, 9 Feb 2011 16:30:40 +0100
Subject: [PATCH] QmlDesigner.NodeInstances: Restart qmlpuppet for a new import

---
 .../qmldesigner/designercore/instances/nodeinstanceview.cpp  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp b/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp
index 975496f5a00..aa375a34ce2 100644
--- a/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp
+++ b/src/plugins/qmldesigner/designercore/instances/nodeinstanceview.cpp
@@ -443,11 +443,12 @@ void NodeInstanceView::instancesCompleted(const QVector<ModelNode> &/*completedN
 {
 }
 
-void NodeInstanceView::importAdded(const Import & import)
+void NodeInstanceView::importAdded(const Import & /*import*/)
 {
-    nodeInstanceServer()->addImport(createImportCommand(import));
+    restartProcess();
 }
 
+
 void NodeInstanceView::importRemoved(const Import &/*import*/)
 {
     restartProcess();
-- 
GitLab