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/qgis@13242 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Apr 5, 2010
1 parent 24e02eb commit a47f48b
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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 a47f48b

Please sign in to comment.