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

(cherry picked from commit f993bc7)
  • Loading branch information
nyalldawson authored and nirvn committed Jan 8, 2020
1 parent 34ff30d commit 5f3ee10
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 5f3ee10

Please sign in to comment.