]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix PAL7557: Allow 'Display Only' popup menu command for the 'Geometry' component... V2_2_0b2
authorvsr <vsr@opencascade.com>
Tue, 1 Feb 2005 14:25:46 +0000 (14:25 +0000)
committervsr <vsr@opencascade.com>
Tue, 1 Feb 2005 14:25:46 +0000 (14:25 +0000)
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 );
        }