mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix infinite loop in relation reference widget
This commit is contained in:
parent
0f8f6188b0
commit
104ff2a975
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user