[QGIS Commit] r13258 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Apr 5 21:39:07 EDT 2010


Author: gsherman
Date: 2010-04-05 21:39:06 -0400 (Mon, 05 Apr 2010)
New Revision: 13258

Modified:
   trunk/qgis/src/app/qgisapp.cpp
Log:
Fix loading of spatialite table after creation

Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp	2010-04-06 01:38:36 UTC (rev 13257)
+++ trunk/qgis/src/app/qgisapp.cpp	2010-04-06 01:39:06 UTC (rev 13258)
@@ -2810,7 +2810,6 @@
         layername.truncate( idx );
 
       // create the layer
-      //qWarning("creating layer");
       QgsVectorLayer *layer = new QgsVectorLayer( "dbname='" + connectionInfo + "' table=" + *it + ") sql=", layername, "spatialite" );
       if ( layer->isValid() )
       {
@@ -3209,7 +3208,7 @@
           sqlite3_free( errmsg );
         }
 
-        QgsVectorLayer *layer = new QgsVectorLayer( QString( "dbname=%1 table=%2(%3) sql=" )
+        QgsVectorLayer *layer = new QgsVectorLayer( QString( "dbname='%1' table='%2'(%3) sql=" )
             .arg( databaseName )
             .arg( newLayerName )
             .arg( newGeometryColumn ), newLayerName, "spatialite" );



More information about the QGIS-commit mailing list