Skip to content
Permalink
Browse files

Fix #10402 - Don't duplicate combo items on selection

  • Loading branch information
NathanW2 committed Jun 1, 2014
1 parent de69932 commit 2d267f1553527c5dde52cdae2ac4ea069ef7a436
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsfieldmodel.cpp
@@ -109,6 +109,10 @@ QModelIndex QgsFieldModel::setExpression( const QString &expression )
if ( !mAllowExpression )
return QModelIndex();

QModelIndex idx = indexFromName( expression );
if ( idx.isValid() )
return idx;

beginResetModel();
mExpression = QList<QString>() << expression;
endResetModel();

0 comments on commit 2d267f1

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