From 0f7dfa91d228a496e5c0cd1cf8abd77ff35fc93d Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 18 Mar 2008 16:04:20 +0000 Subject: [PATCH] IPAL19306 fixed --- src/SUIT/SUIT_FileDlg.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index cd23a38d7..3ab4dc318 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -278,9 +278,15 @@ bool SUIT_FileDlg::addWidgets( QWidget* l, QWidget* w, QWidget* b ) QStringList SUIT_FileDlg::selectedFiles() const { QStringList files = QFileDialog::selectedFiles(); - QMutableListIterator it( files ); - while ( it.hasNext() ) - it.setValue( addExtension( it.next() ) ); + if ( fileMode() != DirectoryOnly && fileMode() != Directory ) { + QMutableListIterator it( files ); + while ( it.hasNext() ) { + QString f = it.next(); + QFileInfo finfo( f ); + if ( !finfo.isDir() ) + it.setValue( addExtension( f ) ); + } + } return files; } -- 2.39.2