Skip to content
Permalink
Browse files

Merge pull request #35106 from alexbruy/fix-34544

clear model before loading new attribute values (fix #34544)
  • Loading branch information
alexbruy committed Mar 16, 2020
2 parents d33c390 + 2ceb1c9 commit 54112ab04c86ab0e6e642c49d046f722cd580f13
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -475,6 +475,7 @@ void QgsExpressionBuilderWidget::fillFieldValues( const QString &fieldName, int
QList<QVariant> values = mLayer->uniqueValues( fieldIndex, countLimit ).toList();
std::sort( values.begin(), values.end() );

mValuesModel->clear();
for ( const QVariant &value : qgis::as_const( values ) )
{
QString strValue;

0 comments on commit 54112ab

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