mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-24 08:43:29 -05:00
parent
c36481edae
commit
de4b90cdf1
6 changed files with 62 additions and 0 deletions
|
|
@ -276,6 +276,13 @@ void Group::setParent(Group* parent, int index)
|
|||
m_parent = parent;
|
||||
if (m_db) {
|
||||
recCreateDelObjects();
|
||||
|
||||
// copy custom icon to the new database
|
||||
if (!iconUuid().isNull() && parent->m_db
|
||||
&& m_db->metadata()->containsCustomIcon(iconUuid())
|
||||
&& !parent->m_db->metadata()->containsCustomIcon(iconUuid())) {
|
||||
parent->m_db->metadata()->addCustomIcon(iconUuid(), icon());
|
||||
}
|
||||
}
|
||||
if (m_db != parent->m_db) {
|
||||
recSetDatabase(parent->m_db);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue