Skip to content

Commit

Permalink
[expression] autoselect first item in function list
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jun 17, 2015
1 parent a786042 commit 395d630
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 395d630

Please sign in to comment.