Skip to content

Commit

Permalink
Fix NULL vs 0 issue in relation reference widget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent f4bc3a2 commit d299c68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void QgsRelationReferenceWidgetWrapper::showIndeterminateState()

void QgsRelationReferenceWidgetWrapper::setValue( const QVariant &val )
{
if ( !mWidget || ( !mIndeterminateState && val == value() ) )
if ( !mWidget || ( !mIndeterminateState && val == value() && val.isNull() == value().isNull() ) )
return;

mIndeterminateState = false;
Expand Down

0 comments on commit d299c68

Please sign in to comment.