]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL 19561 Name of objects does not appear in the context menu of VTK viewer V4_1_2rc1
authordmv <dmv@opencascade.com>
Wed, 16 Apr 2008 10:16:12 +0000 (10:16 +0000)
committerdmv <dmv@opencascade.com>
Wed, 16 Apr 2008 10:16:12 +0000 (10:16 +0000)
src/VISUGUI/VisuGUI.cxx

index ee1ce730a39cf1a8755845b1da582d7cc511f884..7cce3cc191403db93ec3c4a2805245af8c972769 100644 (file)
@@ -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 );