Skip to content

Commit

Permalink
Fix papercut in rule based labeling widget where it's possible
Browse files Browse the repository at this point in the history
to uncheck BOTH the filter and else radio buttons
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Jun 4, 2021
1 parent 726b00f commit a838220
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/labeling/qgsrulebasedlabelingwidget.cpp
Expand Up @@ -604,6 +604,10 @@ QgsLabelingRulePropsWidget::QgsLabelingRulePropsWidget( QgsRuleBasedLabeling::Ru
{
setupUi( this );

QButtonGroup *radioGroup = new QButtonGroup( this );
radioGroup->addButton( mFilterRadio );
radioGroup->addButton( mElseRadio );

mElseRadio->setChecked( mRule->isElse() );
mFilterRadio->setChecked( !mRule->isElse() );
editFilter->setText( mRule->filterExpression() );
Expand Down

0 comments on commit a838220

Please sign in to comment.