Skip to content
Permalink
Browse files
discard empty expressions in setExpression (fix scrollbar in expressi…
…on widget)
  • Loading branch information
3nids committed Jun 23, 2014
1 parent c80bae5 commit 4c199ff16cb8afc6714db591141319ad9e7f1c35
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsfieldmodel.cpp
@@ -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();
}

0 comments on commit 4c199ff

Please sign in to comment.