From: skl Date: Fri, 14 Jul 2006 06:24:54 +0000 (+0000) Subject: Update method isValid() for bug IPAL11201. X-Git-Tag: T3_2_1_pre~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=102ebded1bae73252ed21eed315689e66bdee97b;p=modules%2Fsmesh.git Update method isValid() for bug IPAL11201. --- diff --git a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx index ca78bb60e..9184f68b5 100755 --- a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx @@ -383,6 +383,13 @@ bool SMESHGUI_MeshPatternDlg::isValid (const bool theMess) return false; } + if ( myName->text()=="" ) { + if (theMess) + QMessageBox::information(SMESHGUI::desktop(), tr("SMESH_INSUFFICIENT_DATA"), + tr("SMESHGUI_INVALID_PARAMETERS"), QMessageBox::Ok); + return false; + } + return true; }