Skip to content
Permalink
Browse files
Fix papercut in rule based labeling widget where it's possible
to uncheck BOTH the filter and else radio buttons
  • Loading branch information
nyalldawson committed Jun 21, 2021
1 parent e55a514 commit 5f687b89e473980b804fb34f8640ec05d5c3f9cf
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/labeling/qgsrulebasedlabelingwidget.cpp
@@ -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() );

0 comments on commit 5f687b8

Please sign in to comment.