From 656e6161a06956685be895c74a63e8cab349e311 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Thu, 24 Mar 2022 22:55:11 -0400 Subject: [PATCH] Add tags to history comparison --- share/translations/keepassxc_en.ts | 4 ++++ src/gui/entry/EntryHistoryModel.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts index fca641d13..5fa8e7542 100644 --- a/share/translations/keepassxc_en.ts +++ b/share/translations/keepassxc_en.ts @@ -3679,6 +3679,10 @@ Error: %1 Auto-Type + + Tags + + EntryModel diff --git a/src/gui/entry/EntryHistoryModel.cpp b/src/gui/entry/EntryHistoryModel.cpp index ac70c2e66..acde63cb5 100644 --- a/src/gui/entry/EntryHistoryModel.cpp +++ b/src/gui/entry/EntryHistoryModel.cpp @@ -246,6 +246,9 @@ void EntryHistoryModel::calculateHistoryModifications() || curr->defaultAutoTypeSequence() != compare->defaultAutoTypeSequence()) { modifiedFields << tr("Auto-Type"); } + if (curr->tags() != compare->tags()) { + modifiedFields << tr("Tags"); + } m_historyModifications << modifiedFields.join(", ");