Skip to content
Permalink
Browse files

adapt to new flag API for searchable

  • Loading branch information
3nids committed Sep 7, 2018
1 parent 53c3150 commit f8b8a21892d23ab8940ec13d02fb16bc4878e1d6
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 || !layer->searchable() )
if ( !layer || !layer->flags().testFlag( QgsMapLayer::Searchable ) )
continue;

QgsExpression expression( layer->displayExpression() );

0 comments on commit f8b8a21

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