Salome HOME
PAL8395: Fix pb. with bug2extraEdges.py
[modules/geom.git] / src / GEOMGUI / GeometryGUI.cxx
index 6987b1d2a16f00529388789677da4d218ea14e77..58841200b3e5c866794033c9980351001116dd57 100644 (file)
@@ -724,8 +724,8 @@ bool GeometryGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QStr
 
       if ( theObject == "Component" ) {
        ////// menu for component
-       popup->removeItem( QAD_DisplayOnly_Popup_ID );
        if ( !isOCCViewer && !isVTKViewer ) {
+         popup->removeItem( QAD_DisplayOnly_Popup_ID );
          popup->removeItem( QAD_Display_Popup_ID );
          popup->removeItem( QAD_Erase_Popup_ID );
        }