Skip to content

Commit

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

fixes #42803
  • Loading branch information
3nids authored and github-actions[bot] committed Jun 3, 2021
1 parent 79f096c commit 7b838ce
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 7b838ce

Please sign in to comment.