diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-17 01:40:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-17 01:40:51 +0100 |
| commit | 235483a91d4160f4b9b2e53f1a7d5c4cb5b27925 (patch) | |
| tree | 6735b612a8d03988600b02fc186306459c07ff01 /src/wx/screen_dialog.cc | |
| parent | 6e8f8563f4e4e6ff04b632aff8d6ae95de945649 (diff) | |
Refactor EditableList to take a new pair of functors for new/edit operations.
In the future this will allow more intricate text displays in
EditableLists.
Diffstat (limited to 'src/wx/screen_dialog.cc')
| -rw-r--r-- | src/wx/screen_dialog.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/screen_dialog.cc b/src/wx/screen_dialog.cc index 84d798065..30132f1fc 100644 --- a/src/wx/screen_dialog.cc +++ b/src/wx/screen_dialog.cc @@ -208,11 +208,13 @@ ScreenDialog::ScreenDialog ( vector<EditableListColumn> columns; columns.push_back (EditableListColumn(_("Thumbprint"))); - _trusted_device_list = new EditableList<TrustedDevice, TrustedDeviceDialog> ( + _trusted_device_list = new EditableList<TrustedDevice> ( this, columns, bind (&ScreenDialog::trusted_devices, this), bind (&ScreenDialog::set_trusted_devices, this, _1), + EditableList<TrustedDevice>::add_with_dialog<TrustedDeviceDialog>, + EditableList<TrustedDevice>::edit_with_dialog<TrustedDeviceDialog>, [] (TrustedDevice const& d, int) { return d.thumbprint(); }, |
