Skip to content

Commit

Permalink
clear model before loading new attribute values (fix #34544)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 16, 2020
1 parent 835bf12 commit 2ceb1c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2ceb1c9

Please sign in to comment.