Skip to content
Browse files
Enabled changing attribute values for OGR Layers
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 18, 2006
1 parent b76c0ed commit b123372
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
@@ -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.