Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #4748
  • Loading branch information
alexbruy committed Jan 6, 2012
1 parent f57892c commit b37f631
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gui/qgsprojectionselector.cpp
Expand Up @@ -811,7 +811,6 @@ void QgsProjectionSelector::loadCrsList( QSet<QString> *crsFilter )
mProjListDone = true;
}


// New coordinate system selected from the list
void QgsProjectionSelector::coordinateSystemSelected( QTreeWidgetItem * theItem )
{
Expand All @@ -820,7 +819,6 @@ void QgsProjectionSelector::coordinateSystemSelected( QTreeWidgetItem * theItem
if ( theItem && theItem->childCount() == 0 )
{
// Found a real CRS
QString myDescription;
emit sridSelected( QString::number( selectedCrsId() ) );
QString myProjString = selectedProj4String();
lstCoordinateSystems->scrollToItem( theItem );
Expand Down Expand Up @@ -861,9 +859,10 @@ void QgsProjectionSelector::on_cbxHideDeprecated_stateChanged()

void QgsProjectionSelector::on_lstRecent_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *previous )
{
Q_UNUSED( previous );
// we receive a change event when we make dialog visible,
// on only when there is also a'previous' it is a real user induced event
if ( current && previous )
// 'previous' is null on first selection, so check only 'current'
if ( current )
{
setSelectedCrsId( current->text( QGIS_CRS_ID_COLUMN ).toLong() );
}
Expand Down

0 comments on commit b37f631

Please sign in to comment.