From 2a2c6efa9fb511ee2ea7312bde0fe8bd5828adb4 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 25 Nov 2008 13:46:55 +0000 Subject: [PATCH] IPAL20699 Export to UNV: the suggested file name is started with "/" simbol --- src/SUIT/SUIT_FileDlg.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ); } -- 2.39.2