Fix error when OK-ing a text track dialog with no language (#2430).
[dcpomatic.git] / src / wx / christie_certificate_panel.cc
index ab131e015cf0ba95135cef0693e38e2b2b743634..77516fb8229d306f66c67345140ff217a0473868 100644 (file)
@@ -64,13 +64,13 @@ ChristieCertificatePanel::do_download ()
        optional<string> all_errors;
        bool ok = true;
 
-       optional<string> error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate_from_chain, this, _1));
+       auto error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate_from_chain, this, _1, _2));
        if (error) {
                all_errors = *error;
 
-               string const url = String::compose ("%1IMB-S2/IMB-S2_%2_sha256.pem", prefix, serial);
+               auto const url = String::compose ("%1IMB-S2/IMB-S2_%2_sha256.pem", prefix, serial);
 
-               error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate_from_chain, this, _1));
+               error = get_from_url (url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate_from_chain, this, _1, _2));
                if (error) {
                        *all_errors += "\n" + *error;
                        ok = false;