mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 10:20:34 +05:00
Bug #: NPAL19561 Strip extra spaces from groups popup menu in SMESH
This commit is contained in:
parent
b7a2b97337
commit
ef54a05a85
@ -3180,8 +3180,12 @@ void SMESHGUI::contextMenuPopup( const QString& client, QPopupMenu* menu, QStrin
|
||||
SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() );
|
||||
_PTR(Study) study = appStudy->studyDS();
|
||||
_PTR(SObject) obj = study->FindObjectID( io->getEntry() );
|
||||
if ( obj )
|
||||
title = QString( obj->GetName().c_str() );
|
||||
if ( obj ) {
|
||||
QString aName = QString( obj->GetName().c_str() );
|
||||
while ( aName.at( aName.length() - 1 ) == ' ' ) // Remove extraspaces in Name of Popup
|
||||
aName.remove( (aName.length() - 1), 1 );
|
||||
title = aName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user