Skip to content
Permalink
Browse files

Merge pull request #2149 from slarosa/func_sel_first_item

[expression] autoselect first item in function list
  • Loading branch information
NathanW2 committed Jun 17, 2015
2 parents 1bdb426 + 395d630 commit e1d2735f85341d01ecb43755ce905f7769dc679f
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -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 );
}


0 comments on commit e1d2735

Please sign in to comment.
You can’t perform that action at this time.