mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +05:00
PAL9896 - data is lost in "create mesh" if it is invalid
This commit is contained in:
parent
9412871c47
commit
09ecd3b11c
@ -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" ) );
|
||||||
|
@ -141,8 +141,8 @@ void SMESHGUI_Operation::onOk()
|
|||||||
{
|
{
|
||||||
if( onApply() )
|
if( onApply() )
|
||||||
commit();
|
commit();
|
||||||
else
|
//else
|
||||||
abort();
|
// abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user