From: smh Date: Thu, 1 Apr 2004 16:27:52 +0000 (+0000) Subject: GetVisuGen() method loads VISU GUI library also X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c125d6e4ba7d1b664aca963f559a2fee856d0d46;p=modules%2Fkernel.git GetVisuGen() method loads VISU GUI library also --- diff --git a/src/Session/SALOME_Session_i.cxx b/src/Session/SALOME_Session_i.cxx index 3d2828e69..4c338605d 100644 --- a/src/Session/SALOME_Session_i.cxx +++ b/src/Session/SALOME_Session_i.cxx @@ -74,8 +74,12 @@ Engines::Component_ptr SALOME_Session_i::GetVisuComponent() SALOME_NamingService*,QMutex*); OSD_SharedLibrary visuSharedLibrary("libVISUEngine.so"); if(visuSharedLibrary.DlOpen(OSD_RTLD_LAZY)) - if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen")) + if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen")) { + //qApp->lock(); + QAD_Application::getDesktop()->getComponentGUI( QAD_Application::getDesktop()->getComponentUserName( "VISU" ) ); + //qApp->unlock(); return ((VisuGen (*)) osdFun)(_orb,_poa,_NS,_GUIMutex); + } return Engines::Component::_nil(); }