Skip to content
Permalink
Browse files

[expression] autoselect first item in function list

(cherry-picked from 395d630)
  • Loading branch information
slarosa committed Jun 17, 2015
1 parent ba36bb6 commit e4c2c684b373debc56b6af924ed5b3c4d6fc7d40
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -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 );
}


0 comments on commit e4c2c68

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