We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f8269 commit cf7e016Copy full SHA for cf7e016
src/core/qgsvectorlayereditbuffer.cpp
@@ -245,8 +245,6 @@ bool QgsVectorLayerEditBuffer::commitChanges( QStringList& commitErrors )
245
246
QgsFields oldFields = L->pendingFields();
247
248
- bool hadPendingDeletes = !mDeletedFeatureIds.isEmpty();
249
-
250
//
251
// delete attributes
252
@@ -504,13 +502,6 @@ bool QgsVectorLayerEditBuffer::commitChanges( QStringList& commitErrors )
504
502
}
505
503
506
507
- // for shapes run a REPACK after each transaction
508
- // TODO: enhance provider interface to allow moving this there
509
- if ( success && hadPendingDeletes && L->providerType() == "ogr" && L->storageType() == "ESRI Shapefile" )
510
- {
511
- provider->createSpatialIndex();
512
- }
513
514
if ( !success && provider->hasErrors() )
515
{
516
commitErrors << tr( "\n Provider errors:" );
0 commit comments