From 45fc0eb209f2a8118f91c09480c44451dca1aea4 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 30 Nov 2011 14:12:02 +0000 Subject: [PATCH] 0021436: EDF 1810 SMESH: Create a segment and adding it to a group causes Salome to crash Prevent clasing BusyLocker with BusyLocker from SMESH +namespace +{ class BusyLocker --- src/CAM/CAM_Application.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 7993d9f94..8aa677e3c 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -45,6 +45,8 @@ #include +namespace +{ class BusyLocker { public: @@ -54,6 +56,7 @@ private: bool myPrev; bool& myBusy; }; +} /*! \brief Create new instance of CAM_Application. @@ -361,10 +364,10 @@ CAM_Module* CAM_Application::loadModule( const QString& modName, const bool show if(version) { for ( ModuleInfoList::iterator it = myInfoList.begin(); it != myInfoList.end(); ++it ) { if ( (*it).title == modName ) { - if( (*it).version.isEmpty() ) { - (*it).version = QString(version); - } - break; + if( (*it).version.isEmpty() ) { + (*it).version = QString(version); + } + break; } } } -- 2.39.2