mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-30 05:43:05 -08:00
Clearing deleted entries on applying. (#814)
This commit is contained in:
1 parent
34886dc7e0
commit
6f9224784e
3 files changed
+8
-2
No files matched your search
@@ -429,6 +429,7 @@ void EditEntryWidget::saveEntry()
|
||||
// must stand before beginUpdate()
|
||||
// we don't want to create a new history item, if only the history has changed
|
||||
m_entry->removeHistoryItems(m_historyModel->deletedEntries());
|
||||
m_historyModel->clearDeletedEntries();
|
||||
|
||||
m_autoTypeAssoc->removeEmpty();
|
||||
|
||||
@@ -912,8 +913,7 @@ void EditEntryWidget::deleteHistoryEntry()
|
||||
m_historyModel->deleteIndex(index);
|
||||
if (m_historyModel->rowCount() > 0) {
|
||||
m_historyUi->deleteAllButton->setEnabled(true);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
m_historyUi->deleteAllButton->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user