]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fixing of IPAL19489 (QT4 porting: loading pattern is impossible).
authorakl <akl@opencascade.com>
Tue, 8 Apr 2008 12:14:31 +0000 (12:14 +0000)
committerakl <akl@opencascade.com>
Tue, 8 Apr 2008 12:14:31 +0000 (12:14 +0000)
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx

index 67eb31d7444d57133ae7ce08560781fcd62c4d90..6e9554cb09a4f460ea838545a701b614e7280f5b 100755 (executable)
@@ -790,7 +790,7 @@ void SMESHGUI_MeshPatternDlg::onOpen()
   }
 
   QByteArray aDataArray = aFile.readAll();
-  if (aDataArray.size() > 0) {
+  if (aDataArray.isEmpty()) {
     SUIT_MessageBox::information(this, tr("SMESH_ERROR"),
                                 tr("ERROR_OF_READING"));
     return;