Commit 3dbda428 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Adjust to interface changes

GnuPG-bug-id: 5791
parent fa3fe3e6
Pipeline #128146 passed with stage
in 1 minute and 53 seconds
......@@ -53,7 +53,7 @@ namespace
if (attr.isEmpty()) {
return QString();
}
const QString label = DNAttributeMapper::instance()->name2label(attr);
const QString label = DN::attributeNameToLabel(attr);
if (!label.isEmpty()) {
return i18nc("Format string for the labels in the \"Your Personal Data\" page",
"%1 (%2)", label, attr);
......
......@@ -1316,7 +1316,7 @@ static QString attributeLabel(const QString &attr, bool pgp)
if (attr.isEmpty()) {
return QString();
}
const QString label = pgp ? pgpLabel(attr) : Kleo::DNAttributeMapper::instance()->name2label(attr);
const QString label = pgp ? pgpLabel(attr) : Kleo::DN::attributeNameToLabel(attr);
if (!label.isEmpty())
if (pgp) {
return label;
......
Markdown is supported
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