Skip to content

Commit

Permalink
check filter
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 9, 2018
1 parent f4f5d1e commit fe6f99a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/locator/qgslocatormodelbridge.cpp
Expand Up @@ -41,7 +41,8 @@ void QgsLocatorModelBridge::triggerResult( const QModelIndex &index )
{
mLocator->clearPreviousResults();
QgsLocatorResult result = mProxyModel->data( index, QgsLocatorModel::ResultDataRole ).value< QgsLocatorResult >();
result.filter->triggerResult( result );
if ( result.filter )
result.filter->triggerResult( result );
}

void QgsLocatorModelBridge::setIsRunning( bool isRunning )
Expand Down

0 comments on commit fe6f99a

Please sign in to comment.