Skip to content

Commit

Permalink
only search in searchable layers
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 7, 2018
1 parent d54b7b1 commit deb7e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/locator/qgsinbuiltlocatorfilters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down

0 comments on commit deb7e62

Please sign in to comment.