]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
GetVisuGen() method loads VISU GUI library also
authorsmh <smh@opencascade.com>
Thu, 1 Apr 2004 16:27:52 +0000 (16:27 +0000)
committersmh <smh@opencascade.com>
Thu, 1 Apr 2004 16:27:52 +0000 (16:27 +0000)
src/Session/SALOME_Session_i.cxx

index 3d2828e69528b72eef010a7242c9bc0aa3514f2e..4c338605d02fe94c4afb02e80e01094d6e701e8f 100644 (file)
@@ -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();
 }