[QGIS Commit] r13242 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Mon Apr 5 00:48:22 EDT 2010
Author: gsherman
Date: 2010-04-05 00:48:22 -0400 (Mon, 05 Apr 2010)
New Revision: 13242
Modified:
trunk/qgis/src/app/qgsnewspatialitelayerdialog.cpp
Log:
Create new database immediately on selection of the location. This prevents errors when attempting to lookup an srid before the database exists
Modified: trunk/qgis/src/app/qgsnewspatialitelayerdialog.cpp
===================================================================
--- trunk/qgis/src/app/qgsnewspatialitelayerdialog.cpp 2010-04-05 02:43:41 UTC (rev 13241)
+++ trunk/qgis/src/app/qgsnewspatialitelayerdialog.cpp 2010-04-05 04:48:22 UTC (rev 13242)
@@ -93,6 +93,7 @@
{
mDatabaseComboBox->insertItem( 0, fileName );
mDatabaseComboBox->setCurrentIndex(0);
+ createDb();
needNewDb = true;
}
}
@@ -314,6 +315,10 @@
// 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;
}
More information about the QGIS-commit
mailing list