Commit b6de05dc authored by Laurent Montel's avatar Laurent Montel
Browse files

Add info about how many time we found it

parent 01c76703
Pipeline #224476 passed with stage
in 15 minutes and 14 seconds
......@@ -74,7 +74,9 @@ void ResultDuplicateTreeWidget::setContacts(const QVector<Akonadi::Item::List> &
int i = 1;
for (const Akonadi::Item::List &lst : lstItem) {
auto topLevelItem = new ResultDuplicateTreeWidgetItem(this);
topLevelItem->setText(0, i18n("Duplicate contact \"%1\"", ResultDuplicateTreeWidgetItem::displayName(lst.first())));
topLevelItem->setText(
0,
i18n("Duplicate contact \"%1\" (%2 times)", ResultDuplicateTreeWidgetItem::displayName(lst.first()), QString::number(lst.count())));
for (const Akonadi::Item &item : lst) {
auto childItem = new ResultDuplicateTreeWidgetItem;
topLevelItem->addChild(childItem);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment