mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-17 05:52:31 -04:00
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:
parent
ee1268c518
commit
6f112b11e4
14 changed files with 46 additions and 70 deletions
|
@ -576,7 +576,9 @@ void TestKeePass2Format::testKdbxKeyChange()
|
|||
buffer.seek(0);
|
||||
QSharedPointer<Database> db(new Database());
|
||||
db->changeKdf(fastKdf(KeePass2::uuidToKdf(m_kdbxSourceDb->kdf()->uuid())));
|
||||
db->setRootGroup(m_kdbxSourceDb->rootGroup()->clone(Entry::CloneNoFlags, Group::CloneIncludeEntries));
|
||||
auto oldGroup =
|
||||
db->setRootGroup(m_kdbxSourceDb->rootGroup()->clone(Entry::CloneNoFlags, Group::CloneIncludeEntries));
|
||||
delete oldGroup;
|
||||
|
||||
db->setKey(key1);
|
||||
writeKdbx(&buffer, db.data(), hasError, errorString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue