Skip to content

Commit

Permalink
refactor(SelectiveMasking): Use QSignalBlocker
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Jun 17, 2024
1 parent b764794 commit 9220b27
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gui/qgsmaskingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void QgsMaskingWidget::setLayer( QgsVectorLayer *layer )

void QgsMaskingWidget::populate()
{
mMaskSourcesWidget->blockSignals( true );
mMaskTargetsWidget->blockSignals( true );
const QSignalBlocker blockerSourceWidget( mMaskSourcesWidget );
const QSignalBlocker blockerTargetWidget( mMaskTargetsWidget );

mMaskSourcesWidget->update();
mMaskTargetsWidget->setLayer( mLayer );
Expand Down Expand Up @@ -155,9 +155,6 @@ void QgsMaskingWidget::populate()

mMaskSourcesWidget->setSelection( maskSources );
mMaskTargetsWidget->setSelection( maskedSymbolLayers );

mMaskSourcesWidget->blockSignals( false );
mMaskTargetsWidget->blockSignals( false );
}

void QgsMaskingWidget::apply()
Expand Down

0 comments on commit 9220b27

Please sign in to comment.