From: vsr Date: Thu, 2 Apr 2020 13:40:14 +0000 (+0300) Subject: bos #18727 [CEA 18716] Warnings at SALOME launch X-Git-Tag: V9_5_0a2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24d0e05acb2797b59f7bc36577f4c068275e61e3;p=modules%2Fgui.git bos #18727 [CEA 18716] Warnings at SALOME launch --- 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;