From: akl Date: Tue, 8 Apr 2008 12:14:31 +0000 (+0000) Subject: Fixing of IPAL19489 (QT4 porting: loading pattern is impossible). X-Git-Tag: V5_0_0~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0733b3b369c30f5091e3e6be4ec3879bcc09f01;p=modules%2Fsmesh.git Fixing of IPAL19489 (QT4 porting: loading pattern is impossible). --- diff --git a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx index 67eb31d74..6e9554cb0 100755 --- a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx @@ -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;