Skip to content
Permalink
Browse files

fix crash in spatialite srid selection on creation

git-svn-id: http://svn.osgeo.org/qgis/trunk@13392 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 26, 2010
1 parent 56c7575 commit ac96dcce1ada33558dd5a684cc2be3282a2afe2c
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 ac96dcc

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