Salome HOME
Merge branch 'V8_0_BR'
[modules/gui.git] / src / SalomeApp / SalomeApp_Engine_i.cxx
index b26a8424cb7b8c9a0b736e6684cfd298b0159663..956993d33dad5c4231f9affbc9f309f970e9c495 100644 (file)
@@ -361,6 +361,9 @@ CORBA::Object_ptr SalomeApp_Engine_i::EngineForComponent( const char* theCompone
   if ( !theComponentName || !strlen( theComponentName ) )
     return anEngine._retn();
 
+  if ( SalomeApp_Application::moduleTitle( theComponentName ).isEmpty() )
+    return anEngine._retn();
+
   std::string aPath( "/SalomeAppEngine/" );
   aPath += theComponentName;
   anEngine = namingService()->Resolve( aPath.c_str() );