X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fdolby_doremi_certificate_panel.cc;h=ea0207a9ba067875decfd86654c4707e85b1b947;hb=3a1d0e11ef39c9311e72b1341d549f6eb4fd89d2;hp=f0f0a2601e219d6d97a74df045d644dad3a51662;hpb=6a69f5ba3ce43094493785bb449c91001557b80d;p=dcpomatic.git diff --git a/src/wx/dolby_doremi_certificate_panel.cc b/src/wx/dolby_doremi_certificate_panel.cc index f0f0a2601..ea0207a9b 100644 --- a/src/wx/dolby_doremi_certificate_panel.cc +++ b/src/wx/dolby_doremi_certificate_panel.cc @@ -38,8 +38,8 @@ using boost::function; using boost::optional; using dcp::raw_convert; -DolbyDoremiCertificatePanel::DolbyDoremiCertificatePanel (wxWindow* parent, wxStaticText* message, DownloadCertificateDialog* dialog) - : DownloadCertificatePanel (parent, message, dialog) +DolbyDoremiCertificatePanel::DolbyDoremiCertificatePanel (DownloadCertificateDialog* dialog) + : DownloadCertificatePanel (dialog) { } @@ -139,8 +139,10 @@ try_cp850 (list& urls, list& files, string prefix, string serial } void -DolbyDoremiCertificatePanel::do_download (string serial) +DolbyDoremiCertificatePanel::do_download () { + string const serial = wx_to_std (_serial->GetValue()); + /* Try dcp2000, imb and ims prefixes (see mantis #375) */ string const prefix = "ftp://anonymous@ftp.cinema.dolby.com/Certificates/"; @@ -184,10 +186,10 @@ DolbyDoremiCertificatePanel::do_download (string serial) } if (ok) { - _message->SetLabel (_("Certificate downloaded")); + _dialog->message()->SetLabel (_("Certificate downloaded")); _dialog->setup_sensitivity (); } else { - _message->SetLabel (wxT ("")); + _dialog->message()->SetLabel (wxT ("")); string s; BOOST_FOREACH (string e, errors) {