Please sign in to comment.
use member to keep state if related layer is in transaction group to …
…set toggleEditing and SaveEdits button visibility check the "other parent" in transaction group depending on if it's a many-to-many cardinality or one-to-many fix that it sets toggle-edit and save button to invisible if child layer is in transaction group (even if it's not in the same transaction group like the parent) Means: on one-to-many, we check if parent and child are in the same transaction group: parent-layer (relation->referencedLayer) child-layer (relation->referencingLayer) on many-to-many, we check if parent and child and the other parent are in the same transaction group: parent-layer (relation->referencedLayer) child-layer / relation-layer (relation->referencingLayer) other parent layer (nmrelation->referencedLayer)
- Loading branch information
Showing with 15 additions and 4 deletions.