From 000c1beecc05287ab68b5b564908bf628dc27c86 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 28 Sep 2005 08:10:04 +0000 Subject: [PATCH] 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(). --- src/CAM/CAM_Application.cxx | 8 -------- 1 file changed, 8 deletions(-) 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() ); - } } -- 2.39.2