Copy custom icons when copying/moving entries/groups to another database.

This commit is contained in:
Felix Geyer committed 2013-04-07 18:32:43 +02:00
1 parent 8ed0379136
commit 5a96e19ce9
5 files changed
+53

No files matched your search

+11
View File
@@ -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);