Make sure children of MetadataValues have unique IDs.
}
var id = this.id_func (value);
+ if (!this.is_child_id_unique (id)) {
+ continue;
+ }
+
var title = this.title_func (value);
// The child container can use the same mandatory triplets we used
RESOURCES_PATH)
as TrackerResourcesIface;
}
+
+ private bool is_child_id_unique (string child_id) {
+ var unique = true;
+
+ foreach (var child in this.children) {
+ if (child.id == child_id) {
+ unique = false;
+
+ break;
+ }
+ }
+
+ return unique;
+ }
}