diff options
Diffstat (limited to 'src/wx/recipients_panel.cc')
| -rw-r--r-- | src/wx/recipients_panel.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/wx/recipients_panel.cc b/src/wx/recipients_panel.cc index ff19c0227..ff4b12c36 100644 --- a/src/wx/recipients_panel.cc +++ b/src/wx/recipients_panel.cc @@ -177,14 +177,18 @@ RecipientsPanel::remove_recipient_clicked () list<DKDMRecipient> -RecipientsPanel::recipients () const +RecipientsPanel::recipients() const { - list<DKDMRecipient> all; DKDMRecipientList recipients; - for (auto const& recipient: recipients.dkdm_recipients()) { - all.push_back(recipient.second); + + list<DKDMRecipient> result; + for (auto sel: _selected) { + if (auto recipient = recipients.dkdm_recipient(sel.second)) { + result.push_back(*recipient); + } } - return all; + + return result; } |
