Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[expression] autoselect first item in function list
(cherry-picked from 395d630)
  • Loading branch information
slarosa committed Jul 13, 2015
1 parent ba36bb6 commit e4c2c68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -81,6 +81,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 e4c2c68

Please sign in to comment.