X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Frecipient_dialog.cc;fp=src%2Fwx%2Frecipient_dialog.cc;h=b685f884aab55fe5f993715ed0cafd0529893f2e;hb=fe851f2e6e57d3a8781ecc173089c19632c521e3;hp=688dcafbdc15d304f3a3568938201ba656ada735;hpb=e8748f158249d7be906f6c6cf2411df45dd07a24;p=dcpomatic.git diff --git a/src/wx/recipient_dialog.cc b/src/wx/recipient_dialog.cc index 688dcafbd..b685f884a 100644 --- a/src/wx/recipient_dialog.cc +++ b/src/wx/recipient_dialog.cc @@ -188,11 +188,10 @@ RecipientDialog::load_recipient (boost::filesystem::path file) void RecipientDialog::get_recipient_from_file () { - auto d = new wxFileDialog (this, _("Select Certificate File")); + auto d = make_wx(this, _("Select Certificate File")); if (d->ShowModal () == wxID_OK) { load_recipient (boost::filesystem::path (wx_to_std (d->GetPath ()))); } - d->Destroy (); setup_sensitivity (); }