From cc426d245365f1af83058fc81b7f4feaf3c4c4df Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 22 Apr 2012 00:58:35 +0200 Subject: [PATCH] Add missing check for group database. --- src/core/Entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 8ef98b71e..c579c5034 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -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); } }