Minor changes to Group API to make it more explicit

* Include check for group as recycle bin directly into the Group::isRecycled() function

* Return the original root group from Database::setRootGroup(...) to force memory management transfer
This commit is contained in:
Jonathan White committed 2024-03-09 10:44:54 -05:00
1 parent b4ff1fa36c
commit a02bceabd2
14 files changed
+45 -69

No files matched your search

+1 -1
View File
@@ -463,7 +463,7 @@ bool Entry::isRecycled() const
return false;
}
return m_group == db->metadata()->recycleBin() || m_group->isRecycled();
return m_group->isRecycled();
}
bool Entry::isAttributeReference(const QString& key) const