mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-10 03:38:33 -05:00
parent
4b87a3e58e
commit
8723b7f6a4
@ -159,9 +159,9 @@ void EntryHistoryModel::deleteIndex(QModelIndex index)
|
|||||||
auto entry = entryFromIndex(index);
|
auto entry = entryFromIndex(index);
|
||||||
if (entry) {
|
if (entry) {
|
||||||
beginRemoveRows(QModelIndex(), index.row(), index.row());
|
beginRemoveRows(QModelIndex(), index.row(), index.row());
|
||||||
m_historyEntries.removeAll(entry);
|
m_historyEntries.removeAt(index.row());
|
||||||
m_deletedHistoryEntries << entry;
|
m_deletedHistoryEntries << entry;
|
||||||
m_historyModifications.erase(m_historyModifications.begin() + index.row());
|
calculateHistoryModifications();
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user