Skip to content

Commit 847a511

Browse files
committed
Ignore setting of DerivedTopic if value hasn't changed
1 parent 62990f0 commit 847a511

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Ignia.Topics/Topic.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ public Topic DerivedTopic {
485485
value != this,
486486
"A topic may not derive from itself."
487487
);
488+
if (!_derivedTopic.Equals(value)) {
489+
return;
490+
}
488491
_derivedTopic = value;
489492
if (value != null) {
490493
SetAttributeValue("TopicID", value.Id.ToString());

0 commit comments

Comments
 (0)