Skip to content

Commit b123372

Browse files
author
mhugent
committed
Enabled changing attribute values for OGR Layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5709 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b76c0ed commit b123372

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/gui/qgsattributetable.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ void QgsAttributeTable::handleChangedSelections()
142142
//don't send the signal repaintRequested() from here
143143
//but in contentsMouseReleaseEvent() and rowClicked(int)
144144
//todo: don't repaint in case of double clicks
145-
146145
}
147146

148147
void QgsAttributeTable::insertFeatureId(int id, int row)

src/providers/ogr/qgsogrprovider.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,6 @@ int QgsOgrProvider::capabilities() const
12541254
ability |= DeleteFeatures;
12551255
}
12561256

1257-
//seems to work with newer ogr versions
1258-
//ability |= ChangeAttributeValues;
1259-
12601257
if (ogrLayer->TestCapability("RandomWrite"))
12611258
// TRUE if the SetFeature() method is operational on this layer.
12621259
{
@@ -1265,6 +1262,7 @@ int QgsOgrProvider::capabilities() const
12651262
// TODO Need to work out versions of shapelib vs versions of GDAL/OGR
12661263
// TODO And test appropriately.
12671264

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

0 commit comments

Comments
 (0)