diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-17 01:31:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-22 14:34:25 +0100 |
| commit | 5e10a6f047d12f1e2e3d0e2f8ee30f93897a2227 (patch) | |
| tree | c3daccbbf2291d6330df2c2f6d99bf34fcb2e288 /src/wx | |
| parent | c29ba2526337b486d4a3b1a1468513a22293bc87 (diff) | |
Allow KDMRecipient and hence Screen to convert certs to dcp::Certificate lazily.
This is pretty slow (as it runs the certificate through OpenSSL) and we
don't need to do it for every certificate in a database when we load the
database.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/recipients_panel.cc | 4 | ||||
| -rw-r--r-- | src/wx/screens_panel.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/recipients_panel.cc b/src/wx/recipients_panel.cc index 33b715260..ff19c0227 100644 --- a/src/wx/recipients_panel.cc +++ b/src/wx/recipients_panel.cc @@ -149,14 +149,14 @@ RecipientsPanel::edit_recipient_clicked () recipient->name, recipient->notes, recipient->emails, - recipient->recipient + recipient->recipient() ); if (dialog.ShowModal() == wxID_OK) { recipient->name = dialog.name(); recipient->emails = dialog.emails(); recipient->notes = dialog.notes(); - recipient->recipient = dialog.recipient(); + recipient->set_recipient(dialog.recipient()); recipients.update_dkdm_recipient(recipient_id, *recipient); _targets->SetItemText(selection.first, std_to_wx(dialog.name())); } diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index 221af30b7..6de1d86f0 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -415,7 +415,7 @@ ScreensPanel::edit_screen(CinemaID cinema_id, ScreenID screen_id) GetParent(), _("Edit screen"), screen->name, screen->notes, - screen->recipient, + screen->recipient(), screen->recipient_file, screen->trusted_devices ); @@ -439,7 +439,7 @@ ScreensPanel::edit_screen(CinemaID cinema_id, ScreenID screen_id) screen->name = dialog.name(); screen->notes = dialog.notes(); - screen->recipient = dialog.recipient(); + screen->set_recipient(dialog.recipient()); screen->recipient_file = dialog.recipient_file(); screen->trusted_devices = dialog.trusted_devices(); _cinema_list.update_screen(cinema_id, screen_id, *screen); |
