Make save order for deleted objects consistent.

This commit is contained in:
Florian Geyer 2012-04-22 09:52:12 +02:00 committed by Felix Geyer
parent baed7d76cf
commit 222abe09d9

View File

@ -426,8 +426,6 @@ void Group::cleanupParent()
void Group::recCreateDelObjects() void Group::recCreateDelObjects()
{ {
if (m_db) { if (m_db) {
m_db->addDeletedObject(m_uuid);
Q_FOREACH (Entry* entry, m_entries) { Q_FOREACH (Entry* entry, m_entries) {
m_db->addDeletedObject(entry->uuid()); m_db->addDeletedObject(entry->uuid());
} }
@ -435,5 +433,6 @@ void Group::recCreateDelObjects()
Q_FOREACH (Group* group, m_children) { Q_FOREACH (Group* group, m_children) {
group->recCreateDelObjects(); group->recCreateDelObjects();
} }
m_db->addDeletedObject(m_uuid);
} }
} }