diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-24 16:24:40 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-24 16:24:40 +0300 |
commit | 42bb54ff55ae6e2e2c6bf8a5581d14c1289f0234 (patch) | |
tree | 9a4cd949264e98bf47032199779ee27bd1193f58 /src/app.c | |
parent | 455a635080a1c1c4b164af3060836f0d8c1b3c1c (diff) |
SidebarWidget: List identities as sidebar items
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; |