Salome HOME
refs #585: flag in merge operations
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Module.cxx
index 80d85173d25091d5edd911cb4c128ed798089ae8..a4177f665ba69b50ddd94c16ac896f83eb28ff7c 100644 (file)
@@ -689,8 +689,9 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
       theMenu->addSeparator();
     }
 
-    if (anIsPolyline || anIsPolyline3D)
-      theMenu->addAction( action( ExportPolylineId ) );
+    bool anIsPoly = anIsPolyline || anIsPolyline3D;
+    if ((anIsPoly && !anIsLandCover) || (!anIsPoly && anIsLandCover))
+      theMenu->addAction( action( ExportToShapeFileID ) );
 
     // Add copy action
     QAction* aCopyAction = action( CopyId );
@@ -1822,4 +1823,4 @@ void HYDROGUI_Module::setObjectRemoved( const Handle(HYDROData_Entity)& theObjec
       }
     }
   }
-}
\ No newline at end of file
+}