From 102ebded1bae73252ed21eed315689e66bdee97b Mon Sep 17 00:00:00 2001 From: skl Date: Fri, 14 Jul 2006 06:24:54 +0000 Subject: [PATCH] Update method isValid() for bug IPAL11201. --- src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.2