X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_ComputeDlg.cxx;h=d62255d86b2654e27e89985e432570aa5f90893a;hb=ecf80f795d318653fe3fa820986b5bf0000e3312;hp=5390249344d7ee1978074223ace279cec18401ed;hpb=ddd20dd94358856385f639219bbdfbd1e14239d7;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 539024934..d62255d86 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -1157,7 +1157,23 @@ void SMESHGUI_ComputeOp::startOperation() currentCellChanged(); // to update buttons } } - myDlg->show(); + SUIT_ResourceMgr* resMgr = SMESH::GetResourceMgr( SMESHGUI::GetSMESHGUI() ); + int aNotifyMode = resMgr->integerValue( "SMESH", "show_result_notification" ); + + switch( aNotifyMode ) { + case 0: // show the mesh computation result dialog NEVER + commit(); + break; + case 1: // show the mesh computation result dialog if there are some errors + if ( memoryLack || !noCompError || !noHypoError ) + myDlg->show(); + else + commit(); + break; + default: // show the result dialog after each mesh computation + myDlg->show(); + } + } //================================================================================