From: vsr Date: Tue, 13 Jan 2009 12:59:02 +0000 (+0000) Subject: Fix bug of the "Show Only/Hide All" operations : do not raise warning message for... X-Git-Tag: V4_1_5rc1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd08c20512b3ae623e40de56d64ebfe7f6ae37e5;p=modules%2Fgui.git Fix bug of the "Show Only/Hide All" operations : do not raise warning message for the modules which do not have GUI library. --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index f67cde62a..08a71a414 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -198,7 +198,7 @@ void CAM_Application::loadModules() *\warning If module library (for module with \a modName) is empty. *\warning If module library is not loaded. */ -CAM_Module* CAM_Application::loadModule( const QString& modName ) +CAM_Module* CAM_Application::loadModule( const QString& modName, const bool showMsg ) { if ( myInfoList.isEmpty() ) { @@ -257,7 +257,7 @@ CAM_Module* CAM_Application::loadModule( const QString& modName ) module->setName( moduleName( modName ) ); } - if ( !err.isEmpty() ) { + if ( !err.isEmpty() && showMsg ) { if ( desktop() && desktop()->isShown() ) SUIT_MessageBox::warn1( desktop(), tr( "Error" ), err, tr( "Ok" ) ); else diff --git a/src/CAM/CAM_Application.h b/src/CAM/CAM_Application.h index 1108bd390..583a04662 100755 --- a/src/CAM/CAM_Application.h +++ b/src/CAM/CAM_Application.h @@ -68,7 +68,7 @@ public: virtual void addModule( CAM_Module* ); virtual void loadModules(); - virtual CAM_Module* loadModule( const QString& ); + virtual CAM_Module* loadModule( const QString&, const bool = true ); virtual bool activateModule( const QString& );