From: ouv Date: Tue, 25 Mar 2008 14:14:33 +0000 (+0000) Subject: Bug IPAL19370 : Qt4 porting: Import MED file, Cancel leads to warning message X-Git-Tag: V5_0_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2934c43d34ae09b791594925099a2df1fe8d1987;p=modules%2Fvisu.git Bug IPAL19370 : Qt4 porting: Import MED file, Cancel leads to warning message --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 29065c97..7065861f 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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;