X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.cxx;h=78b99746048d2eec7d9af961e425f9035fb68ec2;hb=05ae10badd80e02346c06faf21f68062400f3f20;hp=3b4976ea61c16e7e7de373eed84a403734b14a11;hpb=c38c10811a065cf5b13e8807ed71864d92ca7d80;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Utils.cxx b/src/SMESHGUI/SMESHGUI_Utils.cxx index 3b4976ea6..78b997460 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.cxx +++ b/src/SMESHGUI/SMESHGUI_Utils.cxx @@ -56,6 +56,11 @@ namespace SMESH{ return theModule->getApp()->selectionMgr(); } + SUIT_ResourceMgr* + GetResourceMgr( const SalomeApp_Module* ) + { + return SUIT_Session::session()->resourceMgr(); + } _PTR(Study) GetCStudy(const SalomeApp_Study* theStudy) @@ -94,8 +99,8 @@ namespace SMESH{ { SalomeApp_Application* app = dynamic_cast (SUIT_Session::session()->activeApplication()); - if (app && app->activeViewManager()) - return app->activeViewManager()->getActiveView(); + if (app && app->desktop() ) + return app->desktop()->activeWindow(); else return NULL; }