Skip to content

Commit

Permalink
Merge pull request #2149 from slarosa/func_sel_first_item
Browse files Browse the repository at this point in the history
[expression] autoselect first item in function list
  • Loading branch information
NathanW2 committed Jun 17, 2015
2 parents 1bdb426 + 395d630 commit e1d2735
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -80,6 +80,11 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
{
tab_2->setEnabled( false );
}

// select the first item in the function list
// in order to avoid a blank help widget
QModelIndex firstItem = mProxyModel->index( 0, 0, QModelIndex() );
expressionTree->setCurrentIndex( firstItem );
}


Expand Down

0 comments on commit e1d2735

Please sign in to comment.