From fd08c20512b3ae623e40de56d64ebfe7f6ae37e5 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 13 Jan 2009 12:59:02 +0000 Subject: [PATCH] Fix bug of the "Show Only/Hide All" operations : do not raise warning message for the modules which do not have GUI library. --- src/CAM/CAM_Application.cxx | 4 ++-- src/CAM/CAM_Application.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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& ); -- 2.39.2