Skip to content
Permalink
Browse files
Address comment
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2021
1 parent 15d4f5b commit 297dcfe69377f017aa6e96cd53f9d99dee05abcf
Showing with 3 additions and 21 deletions.
  1. +3 −21 src/core/browser/qgsbrowserproxymodel.cpp
@@ -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;

0 comments on commit 297dcfe

Please sign in to comment.