Skip to content

Commit

Permalink
Fix searching within function tags
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Aug 12, 2021
1 parent e17862d commit cda26a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsexpressiontreeview.cpp
Expand Up @@ -195,7 +195,9 @@ void QgsExpressionTreeView::setProject( QgsProject *project )

void QgsExpressionTreeView::setSearchText( const QString &text )
{
mProxyModel->setFilterWildcard( text );
const QRegularExpression regularExpression = QRegularExpression( text );
if ( regularExpression.isValid() )
mProxyModel->setFilterRegularExpression( regularExpression );
if ( text.isEmpty() )
{
collapseAll();
Expand Down

0 comments on commit cda26a7

Please sign in to comment.