Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't handle valueChanged for each duplicate widget
  • Loading branch information
domi4484 authored and nyalldawson committed Apr 1, 2023
1 parent bad617d commit e33c23b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -1070,7 +1070,12 @@ void QgsAttributeForm::onAttributeChanged( const QVariant &value, const QVariant
{
if ( formEditorWidget->editorWidget() == eww )
continue;

// formEditorWidget and eww points to the same field, so block signals
// as there is no need to handle valueChanged again for each duplicate
formEditorWidget->editorWidget()->blockSignals( true );
formEditorWidget->editorWidget()->setValue( value );
formEditorWidget->editorWidget()->blockSignals( false );
}

if ( !signalEmitted )
Expand Down

0 comments on commit e33c23b

Please sign in to comment.