mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 19:06:55 -05:00
Fix duplicate icon add in export
SharedObserver did not check for already added icons add during export leading to duplicate icons in the target db.
This commit is contained in:
parent
771ecdba12
commit
05bee40f0a
5 changed files with 37 additions and 5 deletions
|
|
@ -618,8 +618,8 @@ Merger::ChangeList Merger::mergeMetadata(const MergeContext& context)
|
|||
|
||||
const auto keys = sourceMetadata->customIcons().keys();
|
||||
for (QUuid customIconId : keys) {
|
||||
QImage customIcon = sourceMetadata->customIcon(customIconId);
|
||||
if (!targetMetadata->containsCustomIcon(customIconId)) {
|
||||
QImage customIcon = sourceMetadata->customIcon(customIconId);
|
||||
targetMetadata->addCustomIcon(customIconId, customIcon);
|
||||
changes << tr("Adding missing icon %1").arg(QString::fromLatin1(customIconId.toRfc4122().toHex()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue