mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-24 02:51:38 -08:00
Move deleted entries to recycle bin if enabled.
This commit is contained in:
1 parent
5661f29f7d
commit
8735a4846c
5 files changed
+45
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user