This commit is contained in:
eap 2012-03-21 09:01:05 +00:00
parent 5c5ce5f038
commit a63a653731

View File

@ -5956,21 +5956,21 @@ void SMESHGUI::message( const QString& msg )
// get mesh entry // get mesh entry
QString entry = data.count() > 1 ? data[1] : QString(); QString entry = data.count() > 1 ? data[1] : QString();
if ( entry.isEmpty() ) if ( entry.isEmpty() )
return; return;
// get study // get study
_PTR(Study) study = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() )->studyDS(); _PTR(Study) study = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() )->studyDS();
// get mesh name // get mesh name
_PTR(SObject) obj = study->FindObjectID( entry.toLatin1().constData() ); _PTR(SObject) obj = study->FindObjectID( entry.toLatin1().constData() );
QString name; QString name;
if ( obj ) if ( obj )
name = obj->GetName().c_str(); name = obj->GetName().c_str();
if ( name.isEmpty() ) if ( name.isEmpty() )
return; return;
if ( data.last() == "stop" ) if ( data.last() == "stop" )
application()->putInfo( tr( "MESH_LOADING_MSG_FINISHED" ).arg( name ) ); application()->putInfo( tr( "MESH_LOADING_MSG_FINISHED" ).arg( name ) );
else else
application()->putInfo( tr( "MESH_LOADING_MSG" ).arg( name ) ); application()->putInfo( tr( "MESH_LOADING_MSG" ).arg( name ) );
QApplication::processEvents(); QApplication::processEvents();
} }
} }