From: asl Date: Wed, 5 Apr 2006 06:17:01 +0000 (+0000) Subject: There are calls of OB_Browser::setAutoUpdate are added and debug message in case... X-Git-Tag: T3_2_0b1_pre1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e329e45ea41afdb16c7625cde1dbd0752234629;p=modules%2Fgui.git There are calls of OB_Browser::setAutoUpdate are added and debug message in case when some module library isn't found --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 6e461adc0..894641483 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -480,7 +480,10 @@ void LightApp_Application::createActions() for ( it = modList.begin(); it != modList.end(); ++it ) { if ( !isLibExists( *it ) ) + { + qDebug( QString( "Library '%1' cannot be found" ).arg( *it ) ); continue; + } QString iconName; if ( iconMap.contains( *it ) ) @@ -1140,6 +1143,10 @@ void LightApp_Application::updateObjectBrowser( const bool updateModels ) // update existing data models if ( updateModels ) { + const bool isAutoUpdate = objectBrowser() ? objectBrowser()->isAutoUpdate() : true; + if( objectBrowser() ) + objectBrowser()->setAutoUpdate( false ); + LightApp_Study* study = dynamic_cast(activeStudy()); if ( study ) { CAM_Study::ModelList dm_list; @@ -1150,6 +1157,9 @@ void LightApp_Application::updateObjectBrowser( const bool updateModels ) ((LightApp_DataModel*)camDM)->update(); } } + + if( objectBrowser() ) + objectBrowser()->setAutoUpdate( true ); } if ( objectBrowser() ) {