From a301e213a46fef07d87abcff712088eddff0f0d0 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 23 Jan 2024 18:42:33 +0100 Subject: [PATCH] [GUI] Avoid endless stack of signal emission in QgsValueRelationWidgetWrapper::populate() (fixes #55854) --- src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( ) ) );