Skip to content
Permalink
Browse files

vector layer: connect missing edit buffer signals

(cherry picked from commit 65378e6)
  • Loading branch information
jef-n committed Mar 25, 2015
1 parent f0caf17 commit aa97751660c6d49b97ddb9e98faa8359b0a6cccb
Showing with 13 additions and 2 deletions.
  1. +13 −2 src/core/qgsvectorlayer.cpp
@@ -179,9 +179,7 @@ QgsVectorLayer::QgsVectorLayer( QString vectorLayerPath,
}

connect( this, SIGNAL( selectionChanged( QgsFeatureIds, QgsFeatureIds, bool ) ), this, SIGNAL( selectionChanged() ) );

connect( this, SIGNAL( selectionChanged( QgsFeatureIds, QgsFeatureIds, bool ) ), this, SIGNAL( repaintRequested() ) );

connect( QgsProject::instance()->relationManager(), SIGNAL( relationsLoaded() ), this, SLOT( onRelationsLoaded() ) );

// Default simplify drawing settings
@@ -1250,9 +1248,22 @@ bool QgsVectorLayer::startEditing()
connect( mEditBuffer, SIGNAL( attributeValueChanged( QgsFeatureId, int, QVariant ) ), this, SIGNAL( attributeValueChanged( QgsFeatureId, int, QVariant ) ) );
connect( mEditBuffer, SIGNAL( attributeAdded( int ) ), this, SIGNAL( attributeAdded( int ) ) );
connect( mEditBuffer, SIGNAL( attributeDeleted( int ) ), this, SIGNAL( attributeDeleted( int ) ) );

connect( mEditBuffer, SIGNAL( committedAttributesDeleted( const QString &, const QgsAttributeList & ) ),
this, SIGNAL( committedAttributesDeleted( const QString &, const QgsAttributeList & ) ) );

connect( mEditBuffer, SIGNAL( committedAttributesAdded( const QString &, const QList<QgsField> & ) ),
this, SIGNAL( committedAttributesAdded( const QString &, const QList<QgsField> & ) ) );

connect( mEditBuffer, SIGNAL( committedFeaturesAdded( QString, QgsFeatureList ) ), this, SIGNAL( committedFeaturesAdded( QString, QgsFeatureList ) ) );
connect( mEditBuffer, SIGNAL( committedFeaturesRemoved( QString, QgsFeatureIds ) ), this, SIGNAL( committedFeaturesRemoved( QString, QgsFeatureIds ) ) );

connect( mEditBuffer, SIGNAL( committedAttributeValuesChanges( const QString &, const QgsChangedAttributesMap & ) ),
this, SIGNAL( committedAttributeValuesChanges( const QString &, const QgsChangedAttributesMap & ) ) );

connect( mEditBuffer, SIGNAL( committedGeometriesChanges( const QString &, const QgsGeometryMap & ) ),
this, SIGNAL( committedGeometriesChanges( const QString &, const QgsGeometryMap & ) ) );

updateFields();

emit editingStarted();

0 comments on commit aa97751

Please sign in to comment.
You can’t perform that action at this time.