mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-27 18:10:31 -05:00
Move deleted entries to recycle bin if enabled.
This commit is contained in:
parent
5661f29f7d
commit
8735a4846c
5 changed files with 45 additions and 1 deletions
|
|
@ -18,6 +18,7 @@
|
|||
#include "Metadata.h"
|
||||
|
||||
#include "core/Database.h"
|
||||
#include "core/Entry.h"
|
||||
|
||||
Metadata::Metadata(Database* parent)
|
||||
: QObject(parent)
|
||||
|
|
@ -371,3 +372,8 @@ void Metadata::removeCustomField(const QString& key)
|
|||
m_customFields.remove(key);
|
||||
Q_EMIT modified();
|
||||
}
|
||||
|
||||
void Metadata::addEntryToRecycleBin(Entry* entry)
|
||||
{
|
||||
entry->setGroup(m_recycleBin);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue