From 24d0e05acb2797b59f7bc36577f4c068275e61e3 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 2 Apr 2020 16:40:14 +0300 Subject: [PATCH] bos #18727 [CEA 18716] Warnings at SALOME launch --- src/CAM/CAM_Application.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 61d979ea5..6589d5d13 100644 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -753,6 +753,10 @@ void CAM_Application::readModuleList() if ( modName == "KERNEL" || modName == "GUI" ) continue; // omit KERNEL and GUI modules + bool hasGui = resMgr->booleanValue( *it, "gui", true ); + if ( !hasGui ) + continue; // omit if module is explicitly declared as not having GUI + QString modTitle = resMgr->stringValue( *it, "name", QString() ); if ( modTitle.isEmpty() ) { @@ -787,7 +791,6 @@ void CAM_Application::readModuleList() else modLibrary = modName; - bool hasGui = resMgr->booleanValue( *it, "gui", true ); QString version = resMgr->stringValue( *it, "version", QString() ); ModuleInfo inf; -- 2.30.2