Skip to content

Commit

Permalink
Make locator prefixes case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Jan 20, 2020
1 parent 5c27c51 commit 0340aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/locator/qgslocator.cpp
Expand Up @@ -57,7 +57,7 @@ QList<QgsLocatorFilter *> QgsLocator::filters( const QString &prefix )
QList<QgsLocatorFilter *> filters = QList<QgsLocatorFilter *>();
for ( QgsLocatorFilter *filter : mFilters )
{
if ( !filter->activePrefix().isEmpty() && filter->activePrefix() == prefix )
if ( !filter->activePrefix().isEmpty() && filter->activePrefix().compare( prefix, Qt::CaseInsensitive ) == 0 )
{
filters << filter;
}
Expand Down Expand Up @@ -149,7 +149,7 @@ void QgsLocator::fetchResults( const QString &string, const QgsLocatorContext &c
{
for ( QgsLocatorFilter *filter : qgis::as_const( mFilters ) )
{
if ( filter->activePrefix() == prefix && filter->enabled() )
if ( filter->activePrefix().compare( prefix, Qt::CaseInsensitive ) == 0 && filter->enabled() )
{
activeFilters << filter;
}
Expand Down

0 comments on commit 0340aad

Please sign in to comment.