]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
correct integrations for [Bug IPAL20699] Export to UNV
authordmv <dmv@opencascade.com>
Wed, 26 Nov 2008 10:35:41 +0000 (10:35 +0000)
committerdmv <dmv@opencascade.com>
Wed, 26 Nov 2008 10:35:41 +0000 (10:35 +0000)
src/SUIT/SUIT_FileDlg.cxx

index 9c3d4aaddf88ddde3838271b16695224515ba796..ed1c2fd10bccdf63ad54281e508f13b93be5e82a 100755 (executable)
@@ -731,9 +731,9 @@ QString SUIT_FileDlg::getFileName( QWidget* parent, const QString& initial,
 
   fd.setFileMode( open ? ExistingFile : AnyFile );
 
-  QString filename = initial;
-  filename.simplified();
-  filename = filename.replace(QRegExp("\\*"), "" ).replace(QRegExp("\\?"), "" );
+  QString tmpfilename = initial;
+  tmpfilename = tmpfilename.simplified();
+  tmpfilename = tmpfilename.replace(QRegExp("\\*"), "" ).replace(QRegExp("\\?"), "" );
 
   if ( filters.isEmpty() )
     fd.setFilter( tr( "ALL_FILES_FILTER" ) ); // All files (*)
@@ -743,16 +743,16 @@ QString SUIT_FileDlg::getFileName( QWidget* parent, const QString& initial,
   if ( !caption.isEmpty() )
     fd.setWindowTitle( caption );
 
-  if ( !filename.isEmpty() )
-    fd.processPath( filename );
+  if ( !tmpfilename.isEmpty() )
+    fd.processPath( tmpfilename );
 
   if ( validator )
     fd.setValidator( validator );
 
+  QString filename;
+
   if ( fd.exec() == QDialog::Accepted )
     filename = fd.selectedFile();
-  else
-    filename = "";
 
   QApplication::processEvents();