Skip to content

Commit

Permalink
adapt to new flag API for searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 7, 2018
1 parent 53c3150 commit f8b8a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/locator/qgsinbuiltlocatorfilters.cpp
Expand Up @@ -326,7 +326,7 @@ void QgsAllLayersFeaturesLocatorFilter::prepare( const QString &string, const Qg
for ( auto it = layers.constBegin(); it != layers.constEnd(); ++it ) for ( auto it = layers.constBegin(); it != layers.constEnd(); ++it )
{ {
QgsVectorLayer *layer = qobject_cast< QgsVectorLayer *>( it.value() ); QgsVectorLayer *layer = qobject_cast< QgsVectorLayer *>( it.value() );
if ( !layer || !layer->searchable() ) if ( !layer || !layer->flags().testFlag( QgsMapLayer::Searchable ) )
continue; continue;


QgsExpression expression( layer->displayExpression() ); QgsExpression expression( layer->displayExpression() );
Expand Down

0 comments on commit f8b8a21

Please sign in to comment.