diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-15 02:08:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-15 10:57:07 +0100 |
| commit | f8acc34bcb4401184064598353d6c54df3cab1f9 (patch) | |
| tree | f3861ef2b616beb1de08f14a70605480e1feeebc /src/wx/download_certificate_panel.cc | |
| parent | 6a69f5ba3ce43094493785bb449c91001557b80d (diff) | |
More rearrangement and add Barco Alchemy.
Diffstat (limited to 'src/wx/download_certificate_panel.cc')
| -rw-r--r-- | src/wx/download_certificate_panel.cc | 9 |
1 files changed, 4 insertions, 5 deletions
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 |
