Fixing of IPAL19489 (QT4 porting: loading pattern is impossible).

This commit is contained in:
akl 2008-04-08 12:14:31 +00:00
parent 119fd18e76
commit a0733b3b36

View File

@ -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;