Skip to content

Commit

Permalink
discard empty expressions in setExpression (fix scrollbar in expressi…
Browse files Browse the repository at this point in the history
…on widget)
  • Loading branch information
3nids committed Jun 23, 2014
1 parent c80bae5 commit 4c199ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsfieldmodel.cpp
Expand Up @@ -120,7 +120,9 @@ void QgsFieldModel::setExpression( const QString &expression )
return;

beginResetModel();
mExpression = QList<QString>() << expression;
mExpression = QList<QString>();
if ( !expression.isEmpty() )
mExpression << expression;
endResetModel();
}

Expand Down

0 comments on commit 4c199ff

Please sign in to comment.