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

fixes #42803
  • Loading branch information
3nids committed Jun 3, 2021
1 parent ce2f9b8 commit dc9502ca17402c4ae1a976d7945e7170479a5cfd
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 dc9502c

Please sign in to comment.