mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-05 05:31:11 -04:00
Set the group of the entry in Database::recycleEntry().
Drop Metadata::addEntryToRecycleBin() and add a non-const Metadata::recycleBin() getter instead.
This commit is contained in:
parent
8735a4846c
commit
3d1fc6cd6d
3 changed files with 8 additions and 10 deletions
|
@ -188,12 +188,12 @@ void Database::recycleEntry(Entry* entry)
|
|||
if (!m_metadata->recycleBin()) {
|
||||
Group* recycleBin = new Group();
|
||||
recycleBin->setUuid(Uuid::random());
|
||||
recycleBin->setName("Recycle Bin");
|
||||
recycleBin->setName(tr("Recycle Bin"));
|
||||
recycleBin->setIcon(43);
|
||||
recycleBin->setParent(rootGroup());
|
||||
m_metadata->setRecycleBin(recycleBin);
|
||||
}
|
||||
m_metadata->addEntryToRecycleBin(entry);
|
||||
entry->setGroup(metadata()->recycleBin());
|
||||
}
|
||||
else {
|
||||
delete entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue