Skip to content

Commit d299c68

Browse files
committedSep 29, 2017
Fix NULL vs 0 issue in relation reference widget
Fix #16760 https://issues.qgis.org/issues/16760
1 parent f4bc3a2 commit d299c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void QgsRelationReferenceWidgetWrapper::showIndeterminateState()
121121

122122
void QgsRelationReferenceWidgetWrapper::setValue( const QVariant &val )
123123
{
124-
if ( !mWidget || ( !mIndeterminateState && val == value() ) )
124+
if ( !mWidget || ( !mIndeterminateState && val == value() && val.isNull() == value().isNull() ) )
125125
return;
126126

127127
mIndeterminateState = false;

0 commit comments

Comments
 (0)
Please sign in to comment.