Skip to content

Commit 5ddf64f

Browse files
author
gsherman
committed
Create new database immediately on selection of the location. This prevents 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
1 parent 338fe92 commit 5ddf64f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/qgsnewspatialitelayerdialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ void QgsNewSpatialiteLayerDialog::createNewDb()
9393
{
9494
mDatabaseComboBox->insertItem( 0, fileName );
9595
mDatabaseComboBox->setCurrentIndex(0);
96+
createDb();
9697
needNewDb = true;
9798
}
9899
}
@@ -314,6 +315,10 @@ bool QgsNewSpatialiteLayerDialog::createDb()
314315
// QMessageBox::warning( this, "Spatialite Database", tr( "Unable to copy the template database to your new location" ));
315316
return false;
316317
}
318+
else
319+
{
320+
QMessageBox::information( 0, tr( "Spatialite Database" ), tr( "Created new database!" ) );
321+
}
317322
}
318323
return true;
319324
}

0 commit comments

Comments
 (0)