Skip to content
Permalink
Browse files
Fix infinite loop in relation reference widget
  • Loading branch information
m-kuhn committed May 30, 2015
1 parent 0f8f618 commit 104ff2a975f5b75d01f3f0858828410585647f94
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp
@@ -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 )

0 comments on commit 104ff2a

Please sign in to comment.