mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 19:06:55 -05:00
Avoid creation of temporary containers
This commit is contained in:
parent
39b96c13e8
commit
2cf837801d
6 changed files with 15 additions and 7 deletions
|
|
@ -616,7 +616,8 @@ Merger::ChangeList Merger::mergeMetadata(const MergeContext& context)
|
|||
auto* sourceMetadata = context.m_sourceDb->metadata();
|
||||
auto* targetMetadata = context.m_targetDb->metadata();
|
||||
|
||||
for (QUuid customIconId : sourceMetadata->customIcons().keys()) {
|
||||
const auto keys = sourceMetadata->customIcons().keys();
|
||||
for (QUuid customIconId : keys) {
|
||||
QImage customIcon = sourceMetadata->customIcon(customIconId);
|
||||
if (!targetMetadata->containsCustomIcon(customIconId)) {
|
||||
targetMetadata->addCustomIcon(customIconId, customIcon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue