Prevent deletion of custom icon if it is still used by other entries.

Refs #22
This commit is contained in:
Florian Geyer
2012-05-12 00:01:58 +02:00
parent 15fa09167b
commit e4b6289c0b
5 changed files with 29 additions and 5 deletions

View File

@@ -415,3 +415,8 @@ void Metadata::removeCustomField(const QString& key)
m_customFields.remove(key);
Q_EMIT modified();
}
const Database* Metadata::database() const
{
return m_parent;
}