From 1cfdf7e20eac10b456a367282c2b60010e9a04ca Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 24 Oct 2007 13:08:25 +0000 Subject: [PATCH] Fix DumpPython in a second study. --- src/MULTIPRGUI/MULTIPR_GUI.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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; } -- 2.39.2