[pim/kdepim-addons] kmail/editorsendcheckplugins/checkbeforesend/duplicateemails: MAke sure to clear list when we assign.
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 281139ede9b8847fb85c45be2f1f002f18263a9b by Laurent Montel.
Committed on 15/08/2026 at 08:10.
Pushed by mlaurent into branch 'master'.
MAke sure to clear list when we assign.
M +1 -0 kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.cpp
https://invent.kde.org/pim/kdepim-addons/-/commit/281139ede9b8847fb85c45be2f1f002f18263a9b
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.cpp b/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.cpp
index 6ac48946b..800f56d67 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.cpp
+++ b/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.cpp
@@ -47,6 +47,7 @@ CheckDuplicateEmailsDialog::~CheckDuplicateEmailsDialog()
void CheckDuplicateEmailsDialog::setDuplicatedEmails(const QMap<QString, int> &emails)
{
+ mListWidget->clear();
for (const auto &[key, value] : emails.asKeyValueRange()) {
mListWidget->addItem(i18nc("emails (number of emails)", "%1 (%2)", key, value));
}