mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Fix favicon corruption on loading database
* Fix #2251 and Fix #2674 * Icons stored with duplicate UUID's will be assigned a new UUID on load. This causes entries using the duplicate UUID to display the default icon.
This commit is contained in:
parent
cc932eff30
commit
b4de4369eb
@ -367,6 +367,10 @@ void KdbxXmlReader::parseIcon()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (uuidSet && iconSet) {
|
if (uuidSet && iconSet) {
|
||||||
|
// Check for duplicate UUID (corruption)
|
||||||
|
if (m_meta->containsCustomIcon(uuid)) {
|
||||||
|
uuid = QUuid::createUuid();
|
||||||
|
}
|
||||||
m_meta->addCustomIcon(uuid, icon);
|
m_meta->addCustomIcon(uuid, icon);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user