Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix search filter of CRS selector
Escape the search string in order to properly retrieve CRSs: e.g. using the search string NAD83(2011) as filter, the Coordinate Reference System selector currently doesn't list any CRS, while there are a lot of NAD83(2011) CRSs.
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jun 15, 2021
1 parent dd9a56f commit 5a9968c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsprojectionselectiontreewidget.cpp
Expand Up @@ -795,7 +795,7 @@ void QgsProjectionSelectionTreeWidget::lstRecent_itemDoubleClicked( QTreeWidgetI

void QgsProjectionSelectionTreeWidget::updateFilter()
{
QString filterTxtCopy = leSearch->text();
QString filterTxtCopy = QRegExp::escape( leSearch->text() );
filterTxtCopy.replace( QRegExp( "\\s+" ), QStringLiteral( ".*" ) );
QRegExp re( filterTxtCopy, Qt::CaseInsensitive );

Expand Down

0 comments on commit 5a9968c

Please sign in to comment.