From: vsr Date: Tue, 13 Jan 2009 13:07:14 +0000 (+0000) Subject: Fix bug of the "Show Only/Hide All" operations : do not raise warning message for... X-Git-Tag: V4_1_5rc1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b08a9926c24369ed78b1922fe55411b86848ce05;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/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 7ff494c59..ab6a0782a 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -364,9 +364,9 @@ QString LightApp_Application::applicationVersion() const } /*!Load module by \a name.*/ -CAM_Module* LightApp_Application::loadModule( const QString& name ) +CAM_Module* LightApp_Application::loadModule( const QString& name, const bool showMsg ) { - CAM_Module* mod = CAM_Application::loadModule( name ); + CAM_Module* mod = CAM_Application::loadModule( name, showMsg ); if ( mod ) { connect( this, SIGNAL( studyOpened() ), mod, SLOT( onModelOpened() ) ); diff --git a/src/LightApp/LightApp_Application.h b/src/LightApp/LightApp_Application.h index e024029d2..fb62aa68c 100644 --- a/src/LightApp/LightApp_Application.h +++ b/src/LightApp/LightApp_Application.h @@ -110,7 +110,7 @@ public: virtual QString applicationName() const; virtual QString applicationVersion() const; - virtual CAM_Module* loadModule( const QString& ); + virtual CAM_Module* loadModule( const QString&, const bool = true ); virtual bool activateModule( const QString& ); virtual bool useStudy( const QString& ); diff --git a/src/LightApp/LightApp_Displayer.cxx b/src/LightApp/LightApp_Displayer.cxx index 0ef0d099f..989500847 100644 --- a/src/LightApp/LightApp_Displayer.cxx +++ b/src/LightApp/LightApp_Displayer.cxx @@ -259,7 +259,7 @@ LightApp_Displayer* LightApp_Displayer::FindDisplayer( const QString& mod_name, LightApp_Module* m = dynamic_cast( app ? app->module( mod_name ) : 0 ); if( !m && load ) { - m = dynamic_cast( app->loadModule( mod_name ) ); + m = dynamic_cast( app->loadModule( mod_name, false ) ); if( m ) app->addModule( m ); }