]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix of IPAL19446 (Qt4 porting. Cancel on Export MED file leads to inapplicable warning).
authorakl <akl@opencascade.com>
Wed, 23 Apr 2008 13:04:17 +0000 (13:04 +0000)
committerakl <akl@opencascade.com>
Wed, 23 Apr 2008 13:04:17 +0000 (13:04 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 6fd42fcb20fe66477e4a090f46b76128841bdea7..f8ddef8df24160a00d45b18c4863103a53e35be8 100644 (file)
           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;
          }
             ( 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()