Salome HOME
Issue 172: activate automatically the newly created part (not on load)
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 30 Sep 2014 11:02:52 +0000 (15:02 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 30 Sep 2014 11:02:52 +0000 (15:02 +0400)
src/PartSetPlugin/PartSetPlugin_Part.cpp

index 937820becdad0902bb4be7f36908548dc20d68f7..9c5e6e62a93e4ef8cb0956dd2fe4ffbb2716d6a0 100644 (file)
@@ -25,6 +25,7 @@ void PartSetPlugin_Part::execute()
   if (!aResult) {
     aResult = document()->createPart(data());
     setResult(aResult);
+    aResult->activate();
   }
   /*
   boost::shared_ptr<ModelAPI_AttributeDocRef> aDocRef = aResult->data()->docRef(