]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #534: fix the case "3. If the only zone from the region has been selected."...
authormkr <mkr@opencascade.com>
Wed, 24 Jun 2015 15:04:22 +0000 (18:04 +0300)
committermkr <mkr@opencascade.com>
Wed, 24 Jun 2015 15:04:22 +0000 (18:04 +0300)
src/HYDROGUI/HYDROGUI_DataBrowser.cxx

index 9092fa875276826f1224faaa45e515cdef6fce52..eb5f2539e9528b890fa1fa61dd49f6743b6bd33f 100644 (file)
@@ -342,6 +342,14 @@ void HYDROGUI_DataBrowser::createPopupMenu( QMenu* theMenu )
         isOnlyZones = aModelObj->GetKind()==KIND_ZONE;
         if( !isOnlyZones )
           break;
+
+        SUIT_DataObject* aParentObj = aHydroObj->parent();
+        if ( aParentObj )
+        {
+          isOnlyZones = aParentObj->childCount() > 1;
+          if( !isOnlyZones )
+            break;
+        }
       }
       else
       {