]> SALOME platform Git repositories - modules/multipr.git/commitdiff
Salome HOME
Fix DumpPython in a second study.
authorjfa <jfa@opencascade.com>
Wed, 24 Oct 2007 13:08:25 +0000 (13:08 +0000)
committerjfa <jfa@opencascade.com>
Wed, 24 Oct 2007 13:08:25 +0000 (13:08 +0000)
src/MULTIPRGUI/MULTIPR_GUI.cxx

index 1ca14be7450d1fe7c9d5142a3db2b0f842e84c17..8475e1d68f2e330ab4709b0594c23661607cb469 100644 (file)
@@ -359,12 +359,21 @@ QString MULTIPR_GUI::engineIOR() const
 bool MULTIPR_GUI::activateModule(SUIT_Study* theStudy)
 {
     bool bOk = SalomeApp_Module::activateModule(theStudy);
-    
+
     setMenuShown(true);
     setToolShown(true);
-    
+
     action(ACTION_IMPORT_MED)->setAccel(QKeySequence(CTRL + Key_I));
-    
+
+    // Set current study
+    MULTIPR_ORB::MULTIPR_Gen_ptr aGen = GetMultiprGen(this);
+    SalomeApp_Study* aSAStudy = dynamic_cast<SalomeApp_Study*>(theStudy);
+    _PTR(Study) aStudy = aSAStudy->studyDS();
+    SALOMEDS::Study_ptr aStudyDS;
+    if (aStudy)
+      aStudyDS = _CAST(Study,aStudy)->GetStudy();
+    aGen->SetCurrentStudy(aStudyDS);
+
     return bOk;
 }