Skip to content
Permalink
Browse files

Make locator prefixes case insensitive

  • Loading branch information
uclaros authored and nyalldawson committed Jan 15, 2020
1 parent 5c27c51 commit 0340aad702ade07e5bbfd0debc71be763fffb40b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/locator/qgslocator.cpp
@@ -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;
}
@@ -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;
}

0 comments on commit 0340aad

Please sign in to comment.
You can’t perform that action at this time.