]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug with updateObjBrowser()
authorasv <asv@opencascade.com>
Mon, 27 Jun 2005 12:48:17 +0000 (12:48 +0000)
committerasv <asv@opencascade.com>
Mon, 27 Jun 2005 12:48:17 +0000 (12:48 +0000)
src/CAM/CAM_Application.cxx
src/CAM/CAM_Application.h

index f8ca14f3b13b36336438e7ea4f1dc52ea9f6a8da..d13c53ef5f85fca528ab2b5cc740e1185b53a79f 100755 (executable)
@@ -396,3 +396,18 @@ void CAM_Application::contextMenuPopup( const QString& type, QPopupMenu* thePopu
   if ( activeModule() ) 
     activeModule()->contextMenuPopup( type, thePopup, title );
 }
+
+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() );
+  }
+}
index d9eaff9a7c25c6f490d130a921074c0559912cdb..0ec5fd187e94f59709206bcdfe98185788bde082 100755 (executable)
@@ -46,6 +46,8 @@ public:
   QString             moduleName( const QString& ) const;
   QString             moduleTitle( const QString& ) const;
 
+  virtual void        createEmptyStudy();
+
 protected:
   virtual SUIT_Study* createNewStudy();
   virtual void        updateCommandsStatus();