mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add safety check so we don't insert empty icons.
This commit is contained in:
@@ -353,7 +353,7 @@ void Metadata::copyCustomIcons(const QSet<Uuid>& iconList, const Metadata* other
|
|||||||
Q_FOREACH (const Uuid& uuid, iconList) {
|
Q_FOREACH (const Uuid& uuid, iconList) {
|
||||||
Q_ASSERT(otherMetadata->containsCustomIcon(uuid));
|
Q_ASSERT(otherMetadata->containsCustomIcon(uuid));
|
||||||
|
|
||||||
if (!containsCustomIcon(uuid)) {
|
if (!containsCustomIcon(uuid) && otherMetadata->containsCustomIcon(uuid)) {
|
||||||
addCustomIcon(uuid, otherMetadata->customIcon(uuid));
|
addCustomIcon(uuid, otherMetadata->customIcon(uuid));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user