Skip to content

Commit

Permalink
Fix infinite loop in relation reference widget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 30, 2015
1 parent 0f8f618 commit 104ff2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 104ff2a

Please sign in to comment.