PAL9896 - data is lost in "create mesh" if it is invalid

This commit is contained in:
asl 2006-04-06 11:27:21 +00:00
parent 9412871c47
commit 09ecd3b11c
2 changed files with 3 additions and 2 deletions

View File

@ -141,6 +141,7 @@ bool SMESHGUI_MeshOp::onApply()
QString aMess; QString aMess;
if ( !isValid( aMess ) ) if ( !isValid( aMess ) )
{ {
dlg()->show();
if ( aMess != "" ) if ( aMess != "" )
SUIT_MessageBox::warn1( myDlg, SUIT_MessageBox::warn1( myDlg,
tr( "SMESH_WRN_WARNING" ), aMess, tr( "SMESH_BUT_OK" ) ); tr( "SMESH_WRN_WARNING" ), aMess, tr( "SMESH_BUT_OK" ) );

View File

@ -141,8 +141,8 @@ void SMESHGUI_Operation::onOk()
{ {
if( onApply() ) if( onApply() )
commit(); commit();
else //else
abort(); // abort();
} }
//======================================================================= //=======================================================================