Fix of IPAL19446 (Qt4 porting. Cancel on Export MED file leads to inapplicable warning).

This commit is contained in:
akl 2008-04-23 13:04:17 +00:00
parent d8bff2b915
commit 9a383815d8

View File

@ -338,7 +338,7 @@
fd->selectFilter( QObject::tr("STL ASCII (*.stl)") ); fd->selectFilter( QObject::tr("STL ASCII (*.stl)") );
bool is_ok = false; bool is_ok = false;
while (!is_ok) { while (!is_ok) {
fd->exec(); if ( fd->exec() )
aFilename = fd->selectedFile(); aFilename = fd->selectedFile();
aIsASCII_STL = (aFilterMapSTL[fd->selectedFilter()]) == 1 ? true: false; aIsASCII_STL = (aFilterMapSTL[fd->selectedFilter()]) == 1 ? true: false;
is_ok = true; is_ok = true;
@ -356,11 +356,12 @@
( SMESHGUI::desktop(), false, QObject::tr("SMESH_AUTO_GROUPS"), true, true ); ( SMESHGUI::desktop(), false, QObject::tr("SMESH_AUTO_GROUPS"), true, true );
fd->setWindowTitle( aTitle ); fd->setWindowTitle( aTitle );
fd->setFilters( filters ); 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); fd->SetChecked(toCreateGroups);
bool is_ok = false; bool is_ok = false;
while (!is_ok) { while (!is_ok) {
fd->exec(); if ( fd->exec() )
aFilename = fd->selectedFile(); aFilename = fd->selectedFile();
aFormat = aFilterMap[fd->selectedFilter()]; aFormat = aFilterMap[fd->selectedFilter()];
is_ok = true; is_ok = true;