Skip to content

Commit

Permalink
fix filter expression not correctly loaded for relation reference wid…
Browse files Browse the repository at this point in the history
…get after project loading

fixes #42803
  • Loading branch information
3nids authored and nyalldawson committed Jun 9, 2021
1 parent 834e312 commit 191370a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp
Expand Up @@ -63,6 +63,9 @@ void QgsRelationReferenceWidgetWrapper::initWidget( QWidget *editor )
{
mWidget->setFilterFields( config( QStringLiteral( "FilterFields" ) ).toStringList() );
mWidget->setChainFilters( config( QStringLiteral( "ChainFilters" ) ).toBool() );
}
if ( !config( QStringLiteral( "FilterExpression" ) ).toString().isEmpty() )
{
mWidget->setFilterExpression( config( QStringLiteral( "FilterExpression" ) ).toString() );
}
mWidget->setAllowAddFeatures( config( QStringLiteral( "AllowAddFeatures" ), false ).toBool() );
Expand Down

0 comments on commit 191370a

Please sign in to comment.