From: jfa Date: Wed, 24 Oct 2007 13:08:25 +0000 (+0000) Subject: Fix DumpPython in a second study. X-Git-Tag: mergeto_BR_Dev_For_4_0_29Oct07~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1cfdf7e20eac10b456a367282c2b60010e9a04ca;p=modules%2Fmultipr.git Fix DumpPython in a second study. --- diff --git a/src/MULTIPRGUI/MULTIPR_GUI.cxx b/src/MULTIPRGUI/MULTIPR_GUI.cxx index 1ca14be..8475e1d 100644 --- a/src/MULTIPRGUI/MULTIPR_GUI.cxx +++ b/src/MULTIPRGUI/MULTIPR_GUI.cxx @@ -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(theStudy); + _PTR(Study) aStudy = aSAStudy->studyDS(); + SALOMEDS::Study_ptr aStudyDS; + if (aStudy) + aStudyDS = _CAST(Study,aStudy)->GetStudy(); + aGen->SetCurrentStudy(aStudyDS); + return bOk; }