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 15:21:46 -05:00
1 parent ee1268c518
commit 6f112b11e4
14 files changed
+46 -70

No files matched your search

+1 -2
View File
@@ -62,8 +62,7 @@ void TestAutoType::init()
m_db = QSharedPointer<Database>::create();
m_dbList.clear();
m_dbList.append(m_db);
m_group = new Group();
m_db->setRootGroup(m_group);
m_group = m_db->rootGroup();
AutoTypeAssociations::Association association;