From: akl Date: Wed, 23 Apr 2008 13:04:17 +0000 (+0000) Subject: Fix of IPAL19446 (Qt4 porting. Cancel on Export MED file leads to inapplicable warning). X-Git-Tag: V5_0_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9a383815d840fa4ee07e94d57e204f594b17d391;p=modules%2Fsmesh.git Fix of IPAL19446 (Qt4 porting. Cancel on Export MED file leads to inapplicable warning). --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 6fd42fcb2..f8ddef8df 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -338,8 +338,8 @@ fd->selectFilter( QObject::tr("STL ASCII (*.stl)") ); bool is_ok = false; while (!is_ok) { - fd->exec(); - aFilename = fd->selectedFile(); + if ( fd->exec() ) + aFilename = fd->selectedFile(); aIsASCII_STL = (aFilterMapSTL[fd->selectedFilter()]) == 1 ? true: false; is_ok = true; } @@ -356,12 +356,13 @@ ( SMESHGUI::desktop(), false, QObject::tr("SMESH_AUTO_GROUPS"), true, true ); fd->setWindowTitle( aTitle ); fd->setFilters( filters ); - fd->selectFilter( QObject::tr("MED 2.2 (*.med)") ); + //fd->selectFilter( QObject::tr("MED 2.2 (*.med)") ); + fd->selectFilter( filters.last() ); fd->SetChecked(toCreateGroups); bool is_ok = false; while (!is_ok) { - fd->exec(); - aFilename = fd->selectedFile(); + if ( fd->exec() ) + aFilename = fd->selectedFile(); aFormat = aFilterMap[fd->selectedFilter()]; is_ok = true; if ( !aFilename.isEmpty()