Skip to content

Commit

Permalink
Enabled changing attribute values for OGR Layers
Browse files Browse the repository at this point in the history
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 b123372
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/gui/qgsattributetable.cpp
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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.
{
Expand All @@ -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;
}
Expand Down

0 comments on commit b123372

Please sign in to comment.