diff --git a/src/core/Metadata.cpp b/src/core/Metadata.cpp index 105ad14d2..5947255e5 100644 --- a/src/core/Metadata.cpp +++ b/src/core/Metadata.cpp @@ -353,7 +353,7 @@ void Metadata::copyCustomIcons(const QSet& iconList, const Metadata* other Q_FOREACH (const Uuid& uuid, iconList) { Q_ASSERT(otherMetadata->containsCustomIcon(uuid)); - if (!containsCustomIcon(uuid)) { + if (!containsCustomIcon(uuid) && otherMetadata->containsCustomIcon(uuid)) { addCustomIcon(uuid, otherMetadata->customIcon(uuid)); } }