Skip to content

Commit

Permalink
WFS provider, connections dialog: change way that we select current i…
Browse files Browse the repository at this point in the history
…ndex in the tree view of layers to be QT 5 compatible and not require showing the widget in tests
  • Loading branch information
rouault committed May 15, 2016
1 parent e5e78af commit bf91a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfssourceselect.cpp
Expand Up @@ -277,7 +277,7 @@ void QgsWFSSourceSelect::capabilitiesReplyFinished()
treeView->setColumnWidth( MODEL_IDX_ABSTRACT, 150 );
}
btnChangeSpatialRefSys->setEnabled( true );
treeView->selectionModel()->select( mModel->index( 0, 0 ), QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows );
treeView->selectionModel()->setCurrentIndex( mModelProxy->index( 0, 0 ), QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows );
treeView->setFocus();
}
else
Expand Down

0 comments on commit bf91a8b

Please sign in to comment.