Fix infinite loop in relation reference widget

This commit is contained in:
Matthias Kuhn 2015-05-30 18:15:12 +02:00
parent 0f8f6188b0
commit 104ff2a975

View File

@ -99,12 +99,12 @@ QVariant QgsRelationReferenceWidgetWrapper::value()
}
}
void QgsRelationReferenceWidgetWrapper::setValue( const QVariant& value )
void QgsRelationReferenceWidgetWrapper::setValue( const QVariant& val )
{
if ( !mWidget )
if ( !mWidget || val == value() )
return;
mWidget->setForeignKey( value );
mWidget->setForeignKey( val );
}
void QgsRelationReferenceWidgetWrapper::setEnabled( bool enabled )