]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL19370 : Qt4 porting: Import MED file, Cancel leads to warning message
authorouv <ouv@opencascade.com>
Tue, 25 Mar 2008 14:14:33 +0000 (14:14 +0000)
committerouv <ouv@opencascade.com>
Tue, 25 Mar 2008 14:14:33 +0000 (14:14 +0000)
src/VISUGUI/VisuGUI.cxx

index 29065c9772c7814e36bb1e92372494adb0ddea3b..7065861f832d67ebcb353ccca9c1a7923f1732d7 100644 (file)
@@ -201,7 +201,9 @@ VisuGUI
   fd->setWindowTitle( tr( "IMPORT_FROM_FILE" ) );
   fd->setFilters( aFilter );
   fd->SetChecked( toUseBuildProgress );
-  fd->exec();
+  if( !fd->exec() )
+    return;
+
   QFileInfo aFileInfo( fd->selectedFile() );
   toUseBuildProgress = fd->IsChecked();
   delete fd;