diff --git a/src/apple2disk/disk.py b/src/apple2disk/disk.py index 0f909cc..2dd7326 100644 --- a/src/apple2disk/disk.py +++ b/src/apple2disk/disk.py @@ -37,7 +37,9 @@ class Disk(container.Container): @classmethod def Taste(cls, disk): # TODO: return a defined exception here - return cls(disk.name, disk.data) + newdisk = cls(disk.name, disk.data) + disk.AddChild(newdisk) + return newdisk def SetSectorOwner(self, track, sector, owner): self.sectors[(track, sector)] = owner