X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fdownload_certificate_panel.cc;h=2f3b435efaba5a4f66cc2a72f432ae1a20ad8ea3;hb=b1589146e73ad97d3f29e9d5cafe61e5424796a4;hp=f9a88a7bbddbcaa823eb3af619a2462f6a554721;hpb=6a69f5ba3ce43094493785bb449c91001557b80d;p=dcpomatic.git diff --git a/src/wx/download_certificate_panel.cc b/src/wx/download_certificate_panel.cc index f9a88a7bb..2f3b435ef 100644 --- a/src/wx/download_certificate_panel.cc +++ b/src/wx/download_certificate_panel.cc @@ -29,10 +29,9 @@ using boost::function; using boost::optional; -DownloadCertificatePanel::DownloadCertificatePanel (wxWindow* parent, wxStaticText* message, DownloadCertificateDialog* dialog) - : wxPanel (parent, wxID_ANY) +DownloadCertificatePanel::DownloadCertificatePanel (DownloadCertificateDialog* dialog) + : wxPanel (dialog->notebook(), wxID_ANY) , _dialog (dialog) - , _message (message) { _overall_sizer = new wxBoxSizer (wxVERTICAL); SetSizer (_overall_sizer); @@ -71,12 +70,12 @@ DownloadCertificatePanel::certificate () const void DownloadCertificatePanel::download () { - _message->SetLabel (_("Downloading certificate")); + _dialog->message()->SetLabel (_("Downloading certificate")); /* Hack: without this the SetLabel() above has no visible effect */ wxMilliSleep (200); - signal_manager->when_idle (boost::bind (&DownloadCertificatePanel::do_download, this, wx_to_std(_serial->GetValue()))); + signal_manager->when_idle (boost::bind (&DownloadCertificatePanel::do_download, this)); } bool