Skip to content
Permalink
Browse files

fix crash in spatialite srid selection on creation

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13392 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 26, 2010
1 parent 9875255 commit 1ba0e0e8147259d43a6e86470bc4c0c0a36e87d2
Showing with 4 additions and 2 deletions.
  1. +0 −1 src/app/qgsnewspatialitelayerdialog.cpp
  2. +4 −1 src/app/qgsspatialitesridsdialog.cpp
@@ -181,7 +181,6 @@ void QgsNewSpatialiteLayerDialog::on_pbnFindSRID_clicked()
if ( sridDlg->exec() )
{
// set the srid field to the selection
sridDlg->selectedSrid();
leSRID->setText( sridDlg->selectedSrid() );
sridDlg->accept();
}
@@ -33,7 +33,10 @@ QgsSpatialiteSridsDialog::~QgsSpatialiteSridsDialog()
}
QString QgsSpatialiteSridsDialog::selectedSrid()
{
return twSrids->currentItem()->text( 0 );
if ( twSrids->currentItem() )
return twSrids->currentItem()->text( 0 );
else
return "-1";
}
bool QgsSpatialiteSridsDialog::load( QString dbName )
{

0 comments on commit 1ba0e0e

Please sign in to comment.
You can’t perform that action at this time.