Skip to content

Commit

Permalink
Create new database immediately on selection of the location. This pr…
Browse files Browse the repository at this point in the history
…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 5ddf64f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsnewspatialitelayerdialog.cpp
Expand Up @@ -93,6 +93,7 @@ void QgsNewSpatialiteLayerDialog::createNewDb()
{
mDatabaseComboBox->insertItem( 0, fileName );
mDatabaseComboBox->setCurrentIndex(0);
createDb();
needNewDb = true;
}
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ddf64f

Please sign in to comment.