Skip to content

Commit

Permalink
Fix #10402 - Don't duplicate combo items on selection
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jun 1, 2014
1 parent de69932 commit 2d267f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsfieldmodel.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 2d267f1

Please sign in to comment.