Skip to content
Permalink
Browse files
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 5a9968c8728606b9e77f1209a070b470e061c516
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsprojectionselectiontreewidget.cpp
@@ -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 );

0 comments on commit 5a9968c

Please sign in to comment.