mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Don't require a full wildcard string for grass module filtering
Previously the filter required you to enter "*term*" to search within text, but let's be more tolerant and just do a search within always
This commit is contained in:
parent
80b1a8bc62
commit
e22d36a5b5
@ -630,7 +630,7 @@ void QgsGrassToolsTreeFilterProxyModel::setFilter( const QString &filter )
|
||||
return;
|
||||
}
|
||||
mFilter = filter;
|
||||
mRegExp = QRegularExpression( QRegularExpression::wildcardToRegularExpression( mFilter ), QRegularExpression::CaseInsensitiveOption );
|
||||
mRegExp = QRegularExpression( QRegularExpression::wildcardToRegularExpression( QStringLiteral( "*%1*" ).arg( mFilter.trimmed() ) ), QRegularExpression::CaseInsensitiveOption );
|
||||
|
||||
invalidateFilter();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user