Skip to content

Commit

Permalink
Expression Widget: Return current text even if invalid index
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jun 14, 2014
1 parent cc1f24e commit a41ac43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfieldexpressionwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ QString QgsFieldExpressionWidget::currentField( bool *isExpression , bool *isVal
int i = mCombo->currentIndex();
const QModelIndex proxyIndex = mFieldProxyModel->index( i, 0 );
if ( !proxyIndex.isValid() )
return "";
return mCombo->currentText();

if ( isExpression )
{
Expand Down

0 comments on commit a41ac43

Please sign in to comment.