Skip to content
Permalink
Browse files
WFS provider, connections dialog: change way that we select current i…
…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.
@@ -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

0 comments on commit bf91a8b

Please sign in to comment.