Skip to content

Commit

Permalink
[expression] autoselect first item in function list
Browse files Browse the repository at this point in the history
(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
Original file line number Diff line number Diff line change
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.