[QGIS Commit] r8297 - branches/ogr-plugin-branch/src/providers/ogr

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Mar 28 17:44:10 EDT 2008


Author: gcontreras
Date: 2008-03-28 17:44:10 -0400 (Fri, 28 Mar 2008)
New Revision: 8297

Modified:
   branches/ogr-plugin-branch/src/providers/ogr/qgsogrprovider.cpp
Log:
Fixed some problems that didn?\194?\180t allow to load ogr database layers

Modified: branches/ogr-plugin-branch/src/providers/ogr/qgsogrprovider.cpp
===================================================================
--- branches/ogr-plugin-branch/src/providers/ogr/qgsogrprovider.cpp	2008-03-28 20:34:21 UTC (rev 8296)
+++ branches/ogr-plugin-branch/src/providers/ogr/qgsogrprovider.cpp	2008-03-28 21:44:10 UTC (rev 8297)
@@ -109,13 +109,13 @@
   // message if the file is read only, because we cope with that
   // ourselves.
   CPLPushErrorHandler(CPLQuietErrorHandler);
-  ogrDataSource = OGROpen(QFile::encodeName(uri).constData(), TRUE, &ogrDriver);
+  ogrDataSource = OGROpen(QFile::encodeName(connString).constData(), TRUE, &ogrDriver);
   CPLPopErrorHandler();
 
   if(ogrDataSource == NULL)
   {
     // try to open read-only
-    ogrDataSource = OGROpen(QFile::encodeName(uri).constData(), FALSE, &ogrDriver);
+    ogrDataSource = OGROpen(QFile::encodeName(connString).constData(), FALSE, &ogrDriver);
 
     //TODO Need to set a flag or something to indicate that the layer
     //TODO is in read-only mode, otherwise edit ops will fail



More information about the QGIS-commit mailing list