Skip to content
Permalink
Browse files
Enabled changing attribute values for OGR Layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5709 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 18, 2006
1 parent b76c0ed commit b1233721c6c479f456ba012e9bc943f8584713df
Showing with 1 addition and 4 deletions.
  1. +0 −1 src/gui/qgsattributetable.cpp
  2. +1 −3 src/providers/ogr/qgsogrprovider.cpp
@@ -142,7 +142,6 @@ void QgsAttributeTable::handleChangedSelections()
//don't send the signal repaintRequested() from here
//but in contentsMouseReleaseEvent() and rowClicked(int)
//todo: don't repaint in case of double clicks

}

void QgsAttributeTable::insertFeatureId(int id, int row)
@@ -1254,9 +1254,6 @@ int QgsOgrProvider::capabilities() const
ability |= DeleteFeatures;
}

//seems to work with newer ogr versions
//ability |= ChangeAttributeValues;

if (ogrLayer->TestCapability("RandomWrite"))
// TRUE if the SetFeature() method is operational on this layer.
{
@@ -1265,6 +1262,7 @@ int QgsOgrProvider::capabilities() const
// TODO Need to work out versions of shapelib vs versions of GDAL/OGR
// TODO And test appropriately.

ability |= ChangeAttributeValues;
// This provider can't change geometries yet anyway (cf. Postgres provider)
// ability |= QgsVectorDataProvider::ChangeGeometries;
}

0 comments on commit b123372

Please sign in to comment.