]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
In function createEmptyStudy() remove bloc which inserted loading in current applicat...
authornds <nds@opencascade.com>
Wed, 28 Sep 2005 08:10:04 +0000 (08:10 +0000)
committernds <nds@opencascade.com>
Wed, 28 Sep 2005 08:10:04 +0000 (08:10 +0000)
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

index 4f276dfa8ea1cbc5545d22de1ea07d47b28ae19a..c09f726be0bfe653d68452e01a6ca4ac4287b2bc 100755 (executable)
@@ -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<CAM_Study*>( newStudy );
-    for ( ModuleListIterator it( myModules ); it.current(); ++it )
-      camStudy->insertDataModel( it.current()->dataModel() );
-  }
 }