X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fgui.git;a=blobdiff_plain;f=src%2FLightApp%2FLightApp_Application.cxx;fp=src%2FLightApp%2FLightApp_Application.cxx;h=8d7676bdfd633d7c72ab900f08d5a03aa39d16d8;hp=89fb8ec1278723b21a344ea4783e00963e0672e2;hb=2e89ae814a7d6072b1a4e026af6c31f260a795cc;hpb=a29b4050e43a272ca57dbdc0cd55316ed9ec796d diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 89fb8ec12..8d7676bdf 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -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(action(ModulesListId));