Skip to content
Permalink
Browse files

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

…rmat rule

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

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