mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 14:46:07 -04:00
parent
e4a5cd214f
commit
4797926be6
7 changed files with 126 additions and 7 deletions
|
@ -367,6 +367,21 @@ void Entry::addHistoryItem(Entry* entry)
|
|||
Q_EMIT modified();
|
||||
}
|
||||
|
||||
void Entry::removeHistoryItems(QList<Entry*> historyEntries)
|
||||
{
|
||||
bool emitModified = historyEntries.count() > 0;
|
||||
Q_FOREACH (Entry* entry, historyEntries) {
|
||||
Q_ASSERT(!entry->parent());
|
||||
Q_ASSERT(entry->uuid() == uuid());
|
||||
Q_ASSERT(m_history.removeAll(entry) > 0);
|
||||
delete entry;
|
||||
}
|
||||
|
||||
if (emitModified) {
|
||||
Q_EMIT modified();
|
||||
}
|
||||
}
|
||||
|
||||
void Entry::truncateHistory() {
|
||||
const Database* db = database();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue