Skip to content

Commit

Permalink
Avoid current rule gets reset when editing an existing conditional fo…
Browse files Browse the repository at this point in the history
…rmat rule
  • Loading branch information
nyalldawson committed Jan 7, 2020
1 parent d96a32f commit faa7248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsfieldconditionalformatwidget.cpp
Expand Up @@ -72,7 +72,7 @@ void QgsFieldConditionalFormatWidget::editStyle( int editIndex, const QgsConditi
ruleWidget->loadStyle( style );
ruleWidget->setDockMode( true );

if ( fieldRadio->isChecked() )
if ( fieldRadio->isChecked() && style.rule().isEmpty() )
{
ruleWidget->setRule( QStringLiteral( "@value " ) );
}
Expand Down

0 comments on commit faa7248

Please sign in to comment.