From: dmv Date: Tue, 25 Nov 2008 13:46:55 +0000 (+0000) Subject: IPAL20699 Export to UNV: the suggested file name is started with "/" simbol X-Git-Tag: PARAVIS_TEST~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a2c6efa9fb511ee2ea7312bde0fe8bd5828adb4;p=modules%2Fgui.git IPAL20699 Export to UNV: the suggested file name is started with "/" simbol --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index 863b06590..9c3d4aadd 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -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() ); }