]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Protection is added for GUITHARE application, (*.FORT21 fort21) filter. When user...
authorsln <sln@opencascade.com>
Mon, 5 Nov 2007 12:23:24 +0000 (12:23 +0000)
committersln <sln@opencascade.com>
Mon, 5 Nov 2007 12:23:24 +0000 (12:23 +0000)
src/SUIT/SUIT_FileDlg.cxx

index 7fb1ee7c6a4b424fc09d75bc84a464736ea5bfe4..9ce2289470f3b222e7c16b9542c53d7500fd9b7a 100755 (executable)
@@ -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 \93fort21\94 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 ) );