Skip to content

Commit

Permalink
Backporting keepassxreboot#1008
Browse files Browse the repository at this point in the history
  • Loading branch information
louib authored and droidmonkey committed Oct 7, 2017
1 parent 157f113 commit 2e81751
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,15 @@ void Database::emptyRecycleBin()
void Database::merge(const Database* other)
{
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();
}

Expand Down

0 comments on commit 2e81751

Please sign in to comment.