Call emitOperationFinished(...) method of the application when a command is commited.

This commit is contained in:
mzn 2013-11-19 11:39:35 +00:00
parent 710a59a7bf
commit bf4c72d227

View File

@ -881,8 +881,13 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
updateObjBrowser();
if( SUIT_Application* anApp = SUIT_Session::session()->activeApplication() ) {
LightApp_Application* aLightApp = dynamic_cast<LightApp_Application*>( anApp );
if(aLightApp && !isDisableBrowsing() )
if(aLightApp) {
QString anOpName( typeid(*this).name() );
aLightApp->emitOperationFinished( "Geometry", anOpName, anEntryList );
if ( !isDisableBrowsing() )
aLightApp->browseObjects( anEntryList, isApplyAndClose(), isOptimizedBrowsing() );
}
anApp->putInfo( QObject::tr("GEOM_PRP_DONE") );
}
result = true;