summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 16:24:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 16:24:40 +0300
commit42bb54ff55ae6e2e2c6bf8a5581d14c1289f0234 (patch)
tree9a4cd949264e98bf47032199779ee27bd1193f58 /src/app.c
parent455a635080a1c1c4b164af3060836f0d8c1b3c1c (diff)
SidebarWidget: List identities as sidebar items
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index 31be06fd..5bcbfc29 100644
--- a/src/app.c
+++ b/src/app.c
@@ -537,7 +537,8 @@ iDocumentWidget *newTab_App(const iDocumentWidget *duplicateOf) {
537} 537}
538 538
539static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) { 539static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) {
540 if (equal_Command(cmd, "ident.accept") || equal_Command(cmd, "cancel")) { 540 iApp *d = &app_;
541 if (equal_Command(cmd, "ident.accept") || equal_Command(cmd, "cancel")) {
541 if (equal_Command(cmd, "ident.accept")) { 542 if (equal_Command(cmd, "ident.accept")) {
542 const iString *commonName = text_InputWidget (findChild_Widget(dlg, "ident.common")); 543 const iString *commonName = text_InputWidget (findChild_Widget(dlg, "ident.common"));
543 const iString *userId = text_InputWidget (findChild_Widget(dlg, "ident.userid")); 544 const iString *userId = text_InputWidget (findChild_Widget(dlg, "ident.userid"));
@@ -584,7 +585,10 @@ static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) {
584 } 585 }
585 } 586 }
586 } 587 }
587 588 /* The input seems fine. */
589 newIdentity_GmCerts(d->certs, isTemp ? temporary_GmIdentityFlag : 0,
590 until, commonName, userId, organization, country);
591 postCommand_App("idents.changed");
588 } 592 }
589 destroy_Widget(dlg); 593 destroy_Widget(dlg);
590 return iTrue; 594 return iTrue;