diff --git a/picard/metadata.py b/picard/metadata.py index 3cba01db1..47c9ecf9a 100644 --- a/picard/metadata.py +++ b/picard/metadata.py @@ -275,7 +275,7 @@ class Metadata(MutableMapping): del self[tag] if other.images: - self.images = other.images[:] + self.images = other.images.copy() if other.length: self.length = other.length diff --git a/picard/util/imagelist.py b/picard/util/imagelist.py index b05588257..39bb40364 100644 --- a/picard/util/imagelist.py +++ b/picard/util/imagelist.py @@ -51,6 +51,9 @@ class ImageList(MutableSequence): def __eq__(self, other): return self._sorted() == other._sorted() + def copy(self): + return self.__class__(self._images) + def get_front_image(self): for img in self: if img.is_front_image():