Fix PAL7557: Allow 'Display Only' popup menu command for the 'Geometry' component object.

This commit is contained in:
vsr 2005-02-01 14:25:46 +00:00
parent cd509f872c
commit 74989f5a3e

View File

@ -724,8 +724,8 @@ bool GeometryGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QStr
if ( theObject == "Component" ) { if ( theObject == "Component" ) {
////// menu for component ////// menu for component
popup->removeItem( QAD_DisplayOnly_Popup_ID );
if ( !isOCCViewer && !isVTKViewer ) { if ( !isOCCViewer && !isVTKViewer ) {
popup->removeItem( QAD_DisplayOnly_Popup_ID );
popup->removeItem( QAD_Display_Popup_ID ); popup->removeItem( QAD_Display_Popup_ID );
popup->removeItem( QAD_Erase_Popup_ID ); popup->removeItem( QAD_Erase_Popup_ID );
} }