mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-28 21:06:59 -08:00
Copy custom icons when copying/moving entries/groups to another database.
This commit is contained in:
1 parent
8ed0379136
commit
5a96e19ce9
5 files changed
+53
No files matched your search
@@ -348,6 +348,17 @@ void Metadata::removeCustomIcon(const Uuid& uuid)
|
||||
Q_EMIT modified();
|
||||
}
|
||||
|
||||
void Metadata::copyCustomIcons(const QSet<Uuid>& iconList, const Metadata* otherMetadata)
|
||||
{
|
||||
Q_FOREACH (const Uuid& uuid, iconList) {
|
||||
Q_ASSERT(otherMetadata->containsCustomIcon(uuid));
|
||||
|
||||
if (!containsCustomIcon(uuid)) {
|
||||
addCustomIcon(uuid, otherMetadata->customIcon(uuid));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Metadata::setRecycleBinEnabled(bool value)
|
||||
{
|
||||
set(m_recycleBinEnabled, value);
|
||||
|
||||
Reference in new issue
Block a user