Skip to content
Permalink
Browse files

clear model before loading new attribute values (fix #34544)

  • Loading branch information
alexbruy committed Mar 16, 2020
1 parent 835bf12 commit 2ceb1c9367b235a060e6fc5986165ca7f9432f2b
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 2ceb1c9

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