Skip to content
Permalink
Browse files

only search in searchable layers

  • Loading branch information
3nids committed Sep 7, 2018
1 parent d54b7b1 commit deb7e6222751e21629f308a1819bf2c16b830a08
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -326,7 +326,7 @@ void QgsAllLayersFeaturesLocatorFilter::prepare( const QString &string, const Qg
for ( auto it = layers.constBegin(); it != layers.constEnd(); ++it )
{
QgsVectorLayer *layer = qobject_cast< QgsVectorLayer *>( it.value() );
if ( !layer )
if ( !layer || !layer->searchable() )
continue;

QgsExpression expression( layer->displayExpression() );

0 comments on commit deb7e62

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