From 643b0e9ac0caf4a09a5545d58da2d384c7ba7a85 Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Tue, 16 Jan 2024 16:54:49 +0100 Subject: [PATCH] fix module list updating in SalomeApprc --- src/LightApp/LightApp_Application.cxx | 2 +- src/SalomeApprc_utils/SalomeApprc_utils.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2