From: sln Date: Mon, 5 Nov 2007 12:23:24 +0000 (+0000) Subject: Protection is added for GUITHARE application, (*.FORT21 fort21) filter. When user... X-Git-Tag: CTH_V1_3~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c30ce8c7ffe5ad7b2d9f0cc4e778d147771ae3b1;p=modules%2Fgui.git Protection is added for GUITHARE application, (*.FORT21 fort21) filter. When user selects “fort21” file name then extension should not be added --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index 7fb1ee7c6..9ce228947 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -338,6 +338,12 @@ void SUIT_FileDlg::addExtension() // now we get the list of all extension masks and remove all which does not contain wildcard symbols QStringList extList = QStringList::split( "|",aPattern ); + + // This protection is added for GUITHARE application, (*.FORT21 fort21) filter. + // When user selects “fort21” file name then extension should not be added + if ( extList.contains( QFileInfo( mySelectedFile ).baseName() ) ) + return; + for( int i = extList.count() - 1; i >= 0; i-- ) { if ( !extList[i].contains( "." ) ) extList.remove( extList.at( i ) );