From 2934c43d34ae09b791594925099a2df1fe8d1987 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 25 Mar 2008 14:14:33 +0000 Subject: [PATCH] Bug IPAL19370 : Qt4 porting: Import MED file, Cancel leads to warning message --- src/VISUGUI/VisuGUI.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2