- if (d->ShowModal () == wxID_OK) {
- c.second->name = d->name ();
- c.second->emails = d->emails ();
- c.second->notes = d->notes ();
- c.second->utc_offset_hour = d->utc_offset_hour ();
- c.second->utc_offset_minute = d->utc_offset_minute ();
- _targets->SetItemText (c.first, std_to_wx (d->name()));
+ 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()));