diff --git a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp index 666ab2cf151d..1e433da0d6d9 100644 --- a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp +++ b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp @@ -519,7 +519,7 @@ void QgsValueRelationWidgetWrapper::populate( ) if ( mComboBox ) { - mComboBox->clear(); + whileBlocking( mComboBox )->clear(); if ( config( QStringLiteral( "AllowNull" ) ).toBool( ) ) { whileBlocking( mComboBox )->addItem( tr( "(no selection)" ), QVariant( field().type( ) ) );