mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-04 07:42:35 -08: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:
1 parent
8735a4846c
commit
3d1fc6cd6d
3 files changed
+8
-10
No files matched your search
@@ -167,6 +167,11 @@ bool Metadata::recycleBinEnabled() const
|
||||
return m_recycleBinEnabled;
|
||||
}
|
||||
|
||||
Group* Metadata::recycleBin()
|
||||
{
|
||||
return m_recycleBin;
|
||||
}
|
||||
|
||||
const Group* Metadata::recycleBin() const
|
||||
{
|
||||
return m_recycleBin;
|
||||
@@ -372,8 +377,3 @@ 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