Skip to content

Commit

Permalink
Improvement to fix for 2878
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13907 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 11, 2010
1 parent 657daa6 commit e75be2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/wfs/qgswfssourceselect.cpp
Expand Up @@ -89,7 +89,11 @@ void QgsWFSSourceSelect::populateConnectionList()
//set last used connection
QSettings s;
QString selectedConnection = s.value( "/Qgis/connections-wfs/selected" ).toString();
cmbConnections->setCurrentIndex( cmbConnections->findText( selectedConnection ) );
int index = cmbConnections->findText( selectedConnection );
if( index != -1 )
{
cmbConnections->setCurrentIndex( index );
}
}

QString QgsWFSSourceSelect::getPreferredCrs( const QSet<QString>& crsSet ) const
Expand Down

0 comments on commit e75be2f

Please sign in to comment.