*\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() )
{
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
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& );