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 github-actions committed Jun 3, 2021
1 parent 79f096c commit 7b838cee73ff69b318ba86570895ef8dbdbf49f6
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 7b838ce

Please sign in to comment.