Skip to content

Commit

Permalink
in QgsFeatureFilterModel init the display expression when setting the…
Browse files Browse the repository at this point in the history
… layer (#35400)
  • Loading branch information
3nids committed Mar 27, 2020
1 parent 0978bab commit 73314b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsfeaturefiltermodel.cpp
Expand Up @@ -63,6 +63,8 @@ void QgsFeatureFilterModel::setSourceLayer( QgsVectorLayer *sourceLayer )
mExpressionContext = sourceLayer->createExpressionContext();
reload();
emit sourceLayerChanged();

setDisplayExpression( sourceLayer->displayExpression() );
}

QString QgsFeatureFilterModel::displayExpression() const
Expand Down

0 comments on commit 73314b5

Please sign in to comment.