summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
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;