]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for IPAL9110: incorrect update of tree in onRefresh() command.
authorasv <asv@opencascade.com>
Thu, 16 Jun 2005 12:40:33 +0000 (12:40 +0000)
committerasv <asv@opencascade.com>
Thu, 16 Jun 2005 12:40:33 +0000 (12:40 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index e069305cff0340d76d1c2f1b5f2ed8222e05e564..6063e1fa77d2f7c799e7520a79d805eae69039c7 100644 (file)
@@ -483,16 +483,12 @@ void SalomeApp_Application::onSelectionChanged()
 
 void SalomeApp_Application::onAboutRefresh()
 {
-  SalomeApp_DataModel* dm = 0;
-  if ( activeModule() )
-  {
-    CAM_DataModel* camDM = activeModule()->dataModel();
+  for ( ModuleListIterator it = modules(); it.current(); ++it )
+  {    
+    CAM_DataModel* camDM = it.current()->dataModel();
     if ( camDM && camDM->inherits( "SalomeApp_DataModel" ) )
-      dm = (SalomeApp_DataModel*)camDM;
+      ((SalomeApp_DataModel*)camDM)->update();
   }
-
-  if ( dm )
-    dm->update();
 }
 
 void SalomeApp_Application::setActiveStudy( SUIT_Study* study )