diff options
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index 1698a5d4..9a089992 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -438,10 +438,7 @@ static void updateNavBarIdentity_(iWidget *navBar) { | |||
438 | setFlags_Widget(tool, selected_WidgetFlag, ident != NULL); | 438 | setFlags_Widget(tool, selected_WidgetFlag, ident != NULL); |
439 | /* Update menu. */ | 439 | /* Update menu. */ |
440 | iLabelWidget *idItem = child_Widget(findChild_Widget(button, "menu"), 0); | 440 | iLabelWidget *idItem = child_Widget(findChild_Widget(button, "menu"), 0); |
441 | iString *subjectName = ident ? collect_String(subject_TlsCertificate(ident->cert)) : NULL; | 441 | const iString *subjectName = ident ? name_GmIdentity(ident) : NULL; |
442 | if (subjectName && startsWith_String(subjectName, "CN = ")) { | ||
443 | remove_Block(&subjectName->chars, 0, 5); | ||
444 | } | ||
445 | setTextCStr_LabelWidget( | 442 | setTextCStr_LabelWidget( |
446 | idItem, | 443 | idItem, |
447 | subjectName ? format_CStr(uiTextAction_ColorEscape "%s", cstr_String(subjectName)) | 444 | subjectName ? format_CStr(uiTextAction_ColorEscape "%s", cstr_String(subjectName)) |