]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Update method isValid() for bug IPAL11201.
authorskl <skl@opencascade.com>
Fri, 14 Jul 2006 06:24:54 +0000 (06:24 +0000)
committerskl <skl@opencascade.com>
Fri, 14 Jul 2006 06:24:54 +0000 (06:24 +0000)
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx

index ca78bb60ec75bf4d9be9de14295b7a97b3cf94fa..9184f68b509f4b231cec2ca5ca8de29da323b372 100755 (executable)
@@ -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;
 }