mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-12 15:59:58 -05:00
Correct overzealous refactor
This commit is contained in:
parent
6a0a78b870
commit
0d3a3e9df8
@ -1267,7 +1267,9 @@ void Entry::setGroup(Group* group, bool trackPrevious)
|
||||
m_group->database()->addDeletedObject(m_uuid);
|
||||
|
||||
// copy custom icon to the new database
|
||||
if (group->database()) {
|
||||
group->database()->metadata()->copyCustomIcon(iconUuid(), m_group->database()->metadata());
|
||||
}
|
||||
} else if (trackPrevious && m_group->database() && group != m_group) {
|
||||
setPreviousParentGroup(m_group);
|
||||
}
|
||||
|
@ -469,8 +469,10 @@ void Group::setParent(Group* parent, int index, bool trackPrevious)
|
||||
recCreateDelObjects();
|
||||
|
||||
// copy custom icon to the new database
|
||||
if (parent->m_db) {
|
||||
parent->m_db->metadata()->copyCustomIcon(iconUuid(), m_db->metadata());
|
||||
}
|
||||
}
|
||||
if (m_db != parent->m_db) {
|
||||
connectDatabaseSignalsRecursive(parent->m_db);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user