From c125d6e4ba7d1b664aca963f559a2fee856d0d46 Mon Sep 17 00:00:00 2001 From: smh Date: Thu, 1 Apr 2004 16:27:52 +0000 Subject: [PATCH] GetVisuGen() method loads VISU GUI library also --- src/Session/SALOME_Session_i.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); } -- 2.39.2