Skip to content
Permalink
Browse files

Fix NULL vs 0 issue in relation reference widget

  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent f4bc3a2 commit d299c687d54a19a97512acf3953a9a697c8acdd5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp
@@ -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;

0 comments on commit d299c68

Please sign in to comment.
You can’t perform that action at this time.