summaryrefslogtreecommitdiff
path: root/src/wx/recipients_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-10 22:40:16 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-10 22:40:16 +0100
commiteade5cc8657f51d1d768b705936e918f8d1f53ee (patch)
treef7aa1c8c21a483b69f3e4c7908c6310fb7af932e /src/wx/recipients_panel.cc
parent0e18e7acd23ef466cc14a8b2d9a19df4dd991ddc (diff)
Also remove now-redundant UTC offset from DKDMRecipient.
Diffstat (limited to 'src/wx/recipients_panel.cc')
-rw-r--r--src/wx/recipients_panel.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/recipients_panel.cc b/src/wx/recipients_panel.cc
index 485a0f94e..04ad0dd6e 100644
--- a/src/wx/recipients_panel.cc
+++ b/src/wx/recipients_panel.cc
@@ -122,7 +122,7 @@ RecipientsPanel::add_recipient_clicked ()
{
RecipientDialog dialog(GetParent(), _("Add recipient"));
if (dialog.ShowModal() == wxID_OK) {
- auto r = std::make_shared<DKDMRecipient>(dialog.name(), dialog.notes(), dialog.recipient(), dialog.emails(), dialog.utc_offset_hour(), dialog.utc_offset_minute());
+ auto r = std::make_shared<DKDMRecipient>(dialog.name(), dialog.notes(), dialog.recipient(), dialog.emails());
Config::instance()->add_dkdm_recipient (r);
add_recipient (r);
}
@@ -139,15 +139,13 @@ RecipientsPanel::edit_recipient_clicked ()
auto c = *_selected.begin();
RecipientDialog dialog(
- GetParent(), _("Edit recipient"), c.second->name, c.second->notes, c.second->emails, c.second->utc_offset_hour, c.second->utc_offset_minute, c.second->recipient
+ GetParent(), _("Edit recipient"), c.second->name, c.second->notes, c.second->emails, c.second->recipient
);
if (dialog.ShowModal() == wxID_OK) {
c.second->name = dialog.name();
c.second->emails = dialog.emails();
c.second->notes = dialog.notes();
- c.second->utc_offset_hour = dialog.utc_offset_hour();
- c.second->utc_offset_minute = dialog.utc_offset_minute();
_targets->SetItemText(c.first, std_to_wx(dialog.name()));
Config::instance()->changed (Config::DKDM_RECIPIENTS);
}