]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correct function createEmptyStudy()
authornds <nds@opencascade.com>
Thu, 3 Nov 2005 07:12:06 +0000 (07:12 +0000)
committernds <nds@opencascade.com>
Thu, 3 Nov 2005 07:12:06 +0000 (07:12 +0000)
src/CAM/CAM_Application.cxx

index 171a2cb1ba6b6cd45c33b4f11c5c755d2a44a1f4..057804d7dda01b52aef70d18a9c43d4317681f87 100755 (executable)
@@ -468,12 +468,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() );
-  }
 }