We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a18ee29 commit 121e5f2Copy full SHA for 121e5f2
src/app/qgisapp.cpp
@@ -2810,7 +2810,6 @@ void QgisApp::addSpatiaLiteLayer()
2810
layername.truncate( idx );
2811
2812
// create the layer
2813
- //qWarning("creating layer");
2814
QgsVectorLayer *layer = new QgsVectorLayer( "dbname='" + connectionInfo + "' table=" + *it + ") sql=", layername, "spatialite" );
2815
if ( layer->isValid() )
2816
{
@@ -3209,7 +3208,7 @@ void QgisApp::newSpatialiteLayer()
3209
3208
sqlite3_free( errmsg );
3210
}
3211
3212
- QgsVectorLayer *layer = new QgsVectorLayer( QString( "dbname=%1 table=%2(%3) sql=" )
+ QgsVectorLayer *layer = new QgsVectorLayer( QString( "dbname='%1' table='%2'(%3) sql=" )
3213
.arg( databaseName )
3214
.arg( newLayerName )
3215
.arg( newGeometryColumn ), newLayerName, "spatialite" );
0 commit comments