Salome HOME
Minor change.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationDlg.cxx
index c06ab638b0f0e2d3ff6480d2c4a556c44be64ae7..0de08e8a9f7be76fd084926ab93c7d75ae0a5721 100644 (file)
@@ -197,13 +197,14 @@ void HYDROGUI_CalculationDlg::onZonesDropped( const QList<SUIT_DataObject*>& the
     if ( aRegionsRoot )
     {
       // Create a new region
+      emit createRegion( aZonesList );
     }
     else
     {
       HYDROGUI_Region* aRegion = dynamic_cast<HYDROGUI_Region*>(theTargetParent);
       if ( aRegion )
       {
-        aRegion->addZones( );
+        emit moveZones( theTargetParent, aZonesList );
       }
     }
   }
@@ -309,8 +310,7 @@ void HYDROGUI_CalculationDlg::setEditedObject( const Handle(HYDROData_Calculatio
   HYDROGUI_DataObject* anobj = new HYDROGUI_DataObject( 0, NULL, "" );
   myBrowser->setRoot(anobj);
 
-  LightApp_DataObject* aCaseItem = module()->getDataModel()->createObject( anobj,
-                                     myEditedObject, "", true );
+  module()->getDataModel()->buildCaseTree( anobj, myEditedObject );
   myBrowser->updateTree();
   myBrowser->openLevels();
   myBrowser->adjustColumnsWidth();