From: vsr Date: Tue, 18 Mar 2008 16:04:20 +0000 (+0000) Subject: IPAL19306 fixed X-Git-Tag: V5_0_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f7dfa91d228a496e5c0cd1cf8abd77ff35fc93d;p=modules%2Fgui.git IPAL19306 fixed --- 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; }