Skip to content
Permalink
Browse files

Avoid current rule gets reset when editing an existing conditional fo…

…rmat rule
  • Loading branch information
nyalldawson committed Jan 7, 2020
1 parent d96a32f commit faa724844b4a3178c394bb2fefe3d9dbeb561549
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsfieldconditionalformatwidget.cpp
@@ -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 " ) );
}

0 comments on commit faa7248

Please sign in to comment.
You can’t perform that action at this time.