From a0733b3b369c30f5091e3e6be4ec3879bcc09f01 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 8 Apr 2008 12:14:31 +0000 Subject: [PATCH] Fixing of IPAL19489 (QT4 porting: loading pattern is impossible). --- src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2