mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 14:46:07 -04:00
parent
c36481edae
commit
de4b90cdf1
6 changed files with 62 additions and 0 deletions
|
@ -404,6 +404,13 @@ void Entry::setGroup(Group* group)
|
|||
m_group->removeEntry(this);
|
||||
if (m_group->database() && m_group->database() != group->database()) {
|
||||
m_group->database()->addDeletedObject(m_uuid);
|
||||
|
||||
// copy custom icon to the new database
|
||||
if (!iconUuid().isNull() && group->database()
|
||||
&& m_group->database()->metadata()->containsCustomIcon(iconUuid())
|
||||
&& !group->database()->metadata()->containsCustomIcon(iconUuid())) {
|
||||
group->database()->metadata()->addCustomIcon(iconUuid(), icon());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue