From 7e329e45ea41afdb16c7625cde1dbd0752234629 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 5 Apr 2006 06:17:01 +0000 Subject: [PATCH] There are calls of OB_Browser::setAutoUpdate are added and debug message in case when some module library isn't found --- src/LightApp/LightApp_Application.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() ) { -- 2.39.2