diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -537,7 +537,8 @@ iDocumentWidget *newTab_App(const iDocumentWidget *duplicateOf) { | |||
537 | } | 537 | } |
538 | 538 | ||
539 | static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) { | 539 | static 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; |