From c30ce8c7ffe5ad7b2d9f0cc4e778d147771ae3b1 Mon Sep 17 00:00:00 2001 From: sln Date: Mon, 5 Nov 2007 12:23:24 +0000 Subject: [PATCH] =?utf8?q?Protection=20is=20added=20for=20GUITHARE=20appli?= =?utf8?q?cation,=20(*.FORT21=20fort21)=20filter.=20When=20user=20selects?= =?utf8?q?=20=C2=93fort21=C2=94=20file=20name=20then=20extension=20should?= =?utf8?q?=20not=20be=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/SUIT/SUIT_FileDlg.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) ); -- 2.39.2