]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL20699 Export to UNV: the suggested file name is started with "/" simbol
authordmv <dmv@opencascade.com>
Tue, 25 Nov 2008 13:46:55 +0000 (13:46 +0000)
committerdmv <dmv@opencascade.com>
Tue, 25 Nov 2008 13:46:55 +0000 (13:46 +0000)
src/SUIT/SUIT_FileDlg.cxx

index 863b0659084314f48d45841f5b0b7d29e31e0b5f..9c3d4aaddf88ddde3838271b16695224515ba796 100755 (executable)
@@ -751,6 +751,8 @@ QString SUIT_FileDlg::getFileName( QWidget* parent, const QString& initial,
 
   if ( fd.exec() == QDialog::Accepted )
     filename = fd.selectedFile();
+  else
+    filename = "";
 
   QApplication::processEvents();
 
@@ -976,6 +978,6 @@ QString SUIT_FileDlg::getLastVisitedPath()
 */
 void SUIT_FileDlg::selectFile( const QString& f )
 {
-  QFileDialog::selectFile( f );
+  QFileDialog::selectFile( QFileInfo( f ).baseName() );
   setDirectory( QFileInfo( f ).absoluteDir() );
 }