Salome HOME
fix module list updating in SalomeApprc
[modules/gui.git] / src / LightApp / LightApp_Application.cxx
index 89fb8ec1278723b21a344ea4783e00963e0672e2..8d7676bdfd633d7c72ab900f08d5a03aa39d16d8 100644 (file)
@@ -1099,7 +1099,7 @@ bool LightApp_Application::addUserModule( const QString& name, const QString& ro
   // need to do that again.
   // TODO: Maybe it's better to return ModuleInfo from appendModuleInfo() and check status.
   const QString title = resMgr->stringValue(name, "name", QString()).trimmed();
-  if (resMgr->booleanValue(name, "gui", false) || !title.isEmpty())
+  if (resMgr->booleanValue(name, "gui", false) || !title.isEmpty() && interactive)
   {
     // Append module to the menu / toolbar
     LightApp_ModuleAction* moduleAction = qobject_cast<LightApp_ModuleAction*>(action(ModulesListId));