- break;
-
- if ( !getFileFilter().isNull() )
- { // check exstension and add if it is necessary
- int aStart = aUsedFilter.find('*');
- int aEnd = aUsedFilter.find(')', aStart + 1);
- QString aExt = aUsedFilter.mid(aStart + 1, aEnd - aStart - 1);
- if (aExt.contains('*') == 0 ) { // if it is not *.*
- // Check that there is an extension at the end of the name
- QString aNameTail = aName.right(aExt.length());
+ isOk = true;
+ else
+ {
+ if ( !getFileFilter().isNull() ) // check exstension and add if it is necessary
+ {
+ int aStart = aUsedFilter.find( '*' );
+ int aEnd = aUsedFilter.find( ')', aStart + 1 );
+ QString aExt = aUsedFilter.mid( aStart + 1, aEnd - aStart - 1 );
+ if ( aExt.contains( '*' ) == 0 ) // if it is not *.*
+ {
+ // Check that there is an extension at the end of the name
+ QString aNameTail = aName.right( aExt.length() );