From: nds Date: Wed, 28 Sep 2005 08:10:04 +0000 (+0000) Subject: In function createEmptyStudy() remove bloc which inserted loading in current applicat... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=000c1beecc05287ab68b5b564908bf628dc27c86;p=modules%2Fgui.git In function createEmptyStudy() remove bloc which inserted loading in current application dataModels. 1. Function name - create EMPTY study, 2. Study, which sets in inserted data models has no root and for its not call function createDocument(). --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 4f276dfa8..c09f726be 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -481,12 +481,4 @@ void CAM_Application::createEmptyStudy() SUIT_Study* study = activeStudy(); STD_Application::createEmptyStudy(); - - SUIT_Study* newStudy = activeStudy(); - if ( study != newStudy ) - { - CAM_Study* camStudy = dynamic_cast( newStudy ); - for ( ModuleListIterator it( myModules ); it.current(); ++it ) - camStudy->insertDataModel( it.current()->dataModel() ); - } }