clear expression on empty value and set expression when there is a value. this fixes #37843

This commit is contained in:
signedav 2020-08-20 10:32:38 +02:00
parent 6712278a42
commit cbad71c2cd

View File

@ -143,7 +143,7 @@ void QgsRelationReferenceSearchWidgetWrapper::onValueChanged( const QVariant &va
void QgsRelationReferenceSearchWidgetWrapper::onValuesChanged( const QVariantList &values )
{
if ( !values.isEmpty() )
if ( values.isEmpty() )
{
clearExpression();
emit valueCleared();