]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Activation of part after open document correction
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 26 May 2015 09:21:02 +0000 (12:21 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 26 May 2015 09:21:02 +0000 (12:21 +0300)
src/Model/Model_Document.cpp

index 6c23dcbbe21102e40e02cd2c9024a1eb967c7fb1..0d35b4533b38d851d93a1bd76261738d40d90746 100644 (file)
@@ -171,7 +171,8 @@ bool Model_Document::load(const char* theFileName, DocumentPtr theThis)
     setCurrentFeature(currentFeature(false), false);
     aSession->setCheckTransactions(true);
     aSession->setActiveDocument(Model_Session::get()->moduleDocument(), false);
-    aSession->setActiveDocument(anApp->getDocument(myID), true);
+    // this is done in Part result "activate", so no needed here. Causes not-blue active part.
+    //aSession->setActiveDocument(anApp->getDocument(myID), true); 
   }
   return !isError;
 }