Correct implementation of NPAL 19561

This commit is contained in:
dmv 2008-04-17 08:41:36 +00:00
parent ab514907e5
commit 6d38cbb6d0

View File

@ -3137,9 +3137,8 @@ void SMESHGUI::contextMenuPopup( const QString& client, QPopupMenu* menu, QStrin
sel.init( client, selectionMgr() ); sel.init( client, selectionMgr() );
popupMgr()->updatePopup( menu, &sel ); popupMgr()->updatePopup( menu, &sel );
SalomeApp_Module::contextMenuPopup( client, menu, title );
SALOME_ListIO lst; SALOME_ListIO lst;
getApp()->selectionMgr()->selectedObjects( lst ); selectionMgr()->selectedObjects( lst );
if ( ( client == "OCCViewer" || client == "VTKViewer" ) && lst.Extent() == 1 ) { if ( ( client == "OCCViewer" || client == "VTKViewer" ) && lst.Extent() == 1 ) {
Handle(SALOME_InteractiveObject) io = lst.First(); Handle(SALOME_InteractiveObject) io = lst.First();
SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() ); SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() );