From: dmv Date: Wed, 16 Apr 2008 10:16:12 +0000 (+0000) Subject: NPAL 19561 Name of objects does not appear in the context menu of VTK viewer X-Git-Tag: V4_1_2rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f26fe4309d6ed2300644f946b0f85943dd046434;p=modules%2Fvisu.git NPAL 19561 Name of objects does not appear in the context menu of VTK viewer --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index ee1ce730..7cce3cc1 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2834,6 +2834,10 @@ void VisuGUI::contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, Q _PTR(SObject) aSObject = aCStudy->FindObjectID(anIO->getEntry()); if ( !aSObject ) continue; + + if ( !isOBClient ) + theTitle = QString( aSObject->GetName().c_str() ); + CORBA::Object_var aCORBAObject = VISU::ClientSObjectToObject(aSObject); if (CORBA::is_nil(aCORBAObject)) { VISU::VISUType aType = VISU::Storable::SObject2Type( aSObject );