Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2021
1 parent 15d4f5b commit 297dcfe
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions src/core/browser/qgsbrowserproxymodel.cpp
Expand Up @@ -117,28 +117,10 @@ void QgsBrowserProxyModel::updateFilter()

bool QgsBrowserProxyModel::filterAcceptsString( const QString &value ) const
{
switch ( mPatternSyntax )
for ( const QRegularExpression &rx : mREList )
{
case Normal:
case Wildcards:
{
for ( const QRegularExpression &rx : mREList )
{
if ( rx.match( value ).hasMatch() )
return true;
}
break;
}

case RegularExpression:
{
for ( const QRegularExpression &rx : mREList )
{
if ( rx.match( value ).hasMatch() )
return true;
}
break;
}
if ( rx.match( value ).hasMatch() )
return true;
}

return false;
Expand Down

0 comments on commit 297dcfe

Please sign in to comment.