Skip to content
Permalink
Browse files
fix filter expression not correctly loaded for relation reference wid…
…get after project loading

fixes #42803
  • Loading branch information
3nids authored and nyalldawson committed Jun 9, 2021
1 parent 834e312 commit 191370a7d54721e570add079a26d145bc63feba2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp
@@ -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() );

0 comments on commit 191370a

Please sign in to comment.