mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-21 07:20:28 -05:00
Backporting #1008
This commit is contained in:
parent
157f1134bf
commit
2e81751131
1 changed files with 9 additions and 0 deletions
|
|
@ -328,6 +328,15 @@ void Database::emptyRecycleBin()
|
||||||
void Database::merge(const Database* other)
|
void Database::merge(const Database* other)
|
||||||
{
|
{
|
||||||
m_rootGroup->merge(other->rootGroup());
|
m_rootGroup->merge(other->rootGroup());
|
||||||
|
|
||||||
|
for (Uuid customIconId : other->metadata()->customIcons().keys()) {
|
||||||
|
QImage customIcon = other->metadata()->customIcon(customIconId);
|
||||||
|
if (!this->metadata()->containsCustomIcon(customIconId)) {
|
||||||
|
qDebug("Adding custom icon %s to database.", qPrintable(customIconId.toHex()));
|
||||||
|
this->metadata()->addCustomIcon(customIconId, customIcon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
emit modified();
|
emit modified();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue