File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,6 @@ void QgsProjectionSelector::applyCRSNameSelection()
305
305
if ( nodes.count () > 0 )
306
306
{
307
307
lstCoordinateSystems->setCurrentItem ( nodes.first () );
308
- lstCoordinateSystems->scrollToItem ( nodes.first () );
309
308
}
310
309
else // unselect the selected item to avoid confusing the user
311
310
{
@@ -344,7 +343,6 @@ void QgsProjectionSelector::applyAuthIDSelection()
344
343
if ( nodes.count () > 0 )
345
344
{
346
345
lstCoordinateSystems->setCurrentItem ( nodes.first () );
347
- lstCoordinateSystems->scrollToItem ( nodes.first () );
348
346
}
349
347
else // unselect the selected item to avoid confusing the user
350
348
{
@@ -367,7 +365,6 @@ void QgsProjectionSelector::applyCRSIDSelection()
367
365
if ( nodes.count () > 0 )
368
366
{
369
367
lstCoordinateSystems->setCurrentItem ( nodes.first () );
370
- lstCoordinateSystems->scrollToItem ( nodes.first () );
371
368
}
372
369
else // unselect the selected item to avoid confusing the user
373
370
{
@@ -851,7 +848,7 @@ void QgsProjectionSelector::coordinateSystemSelected( QTreeWidgetItem * theItem
851
848
QString myDescription;
852
849
emit sridSelected ( QString::number ( selectedCrsId () ) );
853
850
QString myProjString = selectedProj4String ();
854
- lstCoordinateSystems->scrollToItem ( theItem );
851
+ lstCoordinateSystems->scrollToItem ( theItem, QAbstractItemView::PositionAtCenter );
855
852
teProjection->setText ( myProjString );
856
853
857
854
lstRecent->clearSelection ();
You can’t perform that action at this time.
0 commit comments