From f26fe4309d6ed2300644f946b0f85943dd046434 Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 16 Apr 2008 10:16:12 +0000 Subject: [PATCH] NPAL 19561 Name of objects does not appear in the context menu of VTK viewer --- src/VISUGUI/VisuGUI.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.39.2