Add missing check for group database.

This commit is contained in:
Felix Geyer 2012-04-22 00:58:35 +02:00
parent 82f1cbb3c9
commit cc426d2453

View File

@ -359,7 +359,7 @@ void Entry::setGroup(Group* group)
{
if (m_group) {
m_group->removeEntry(this);
if (m_group->database() != group->database()) {
if (m_group->database() != group->database() && m_group->database()) {
m_group->database()->addDeletedObject(m_uuid);
}
}