From: DUC ANH HOANG Date: Tue, 16 Jan 2024 15:54:49 +0000 (+0100) Subject: fix module list updating in SalomeApprc X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ecde2439a84f2dd201a27c7ec47a2f9ffed70f54;p=modules%2Fgui.git fix module list updating in SalomeApprc --- 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)); diff --git a/src/SalomeApprc_utils/SalomeApprc_utils.cxx b/src/SalomeApprc_utils/SalomeApprc_utils.cxx index 460058801..17a8ed214 100644 --- a/src/SalomeApprc_utils/SalomeApprc_utils.cxx +++ b/src/SalomeApprc_utils/SalomeApprc_utils.cxx @@ -65,7 +65,7 @@ void AddComponents_from_salomemodules(const QString& salomemodules, const QDir& } void AddGuiComponent(const QString& comp, const QString& CompRoot, SUIT_ResourceMgr* ResMgr) { - QStringList CompsResMgr = ResMgr->stringValue("launch", "user_modules").split(";", QString::SkipEmptyParts); + QStringList CompsResMgr; ResMgr->setValue( "user_modules", comp, CompRoot ); CompsResMgr << comp;