Skip to content
Permalink
Browse files
Create new database immediately on selection of the location. This pr…
…events errors when attempting to lookup an srid before the database exists

git-svn-id: http://svn.osgeo.org/qgis/trunk@13242 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Apr 5, 2010
1 parent 338fe92 commit 5ddf64f379ff092b89408ac132040fb7f6e0cb2c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsnewspatialitelayerdialog.cpp
@@ -93,6 +93,7 @@ void QgsNewSpatialiteLayerDialog::createNewDb()
{
mDatabaseComboBox->insertItem( 0, fileName );
mDatabaseComboBox->setCurrentIndex(0);
createDb();
needNewDb = true;
}
}
@@ -314,6 +315,10 @@ bool QgsNewSpatialiteLayerDialog::createDb()
// QMessageBox::warning( this, "Spatialite Database", tr( "Unable to copy the template database to your new location" ));
return false;
}
else
{
QMessageBox::information( 0, tr( "Spatialite Database" ), tr( "Created new database!" ) );
}
}
return true;
}

0 comments on commit 5ddf64f

Please sign in to comment.