From b901416596671bf43af82f9336fa67a1bc5a76a8 Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 10 Nov 2005 11:13:54 +0000 Subject: [PATCH] no message --- src/SUIT/SUIT_FileDlg.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index cb8a71b69..7fe375414 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -251,7 +251,7 @@ bool SUIT_FileDlg::acceptData() if ( isOpenDlg() ) if ( mode() == ExistingFiles ) { QStringList fileNames = selectedFiles(); - for ( int i = 0; i < fileNames.count(); i++ ) { + for ( int i = 0; i < (int)fileNames.count(); i++ ) { if ( !myValidator->canOpen( fileNames[i] ) ) return false; } @@ -325,10 +325,12 @@ void SUIT_FileDlg::addExtension() QRegExp anExtRExp( "^("+ aPattern + ")$" ); // Check if the current file extension matches the pattern - if ( anExtRExp.match( anExt ) < 0 ) { + if ( anExtRExp.match( anExt ) < 0 ) + { // find first appropriate extension in the selected filter // (it should be without wildcard symbols) - for ( int i = 0; i < extList.count(); i++ ) { + for ( int i = 0; i < (int)extList.count(); i++ ) + { QString newExt = extList[i].replace( QRegExp( "[\\\\][+]" ),"+" ); int res = newExt.findRev( '.' ); if ( res >= 0 ) -- 2.39.2