Commit 736843fa authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Set a more accessible text representation if email address is empty

For people using screen readers an empty text representation may result
in silence. Use "no email" for an empty email entry instead.

GnuPG-bug-id: 5843
parent 3db1ef78
Pipeline #196049 passed with stage
in 5 minutes and 4 seconds
......@@ -534,6 +534,7 @@ void CertificateDetailsWidget::Private::setupCommonProperties()
item->setData(0, Qt::DisplayRole, pMail);
item->setData(0, Qt::ToolTipRole, toolTip);
item->setData(0, Qt::AccessibleTextRole, pMail.isEmpty() ? i18nc("text for screen readers for an empty email address", "no email") : pMail);
item->setData(1, Qt::DisplayRole, pName);
item->setData(1, Qt::ToolTipRole, toolTip);
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