summaryrefslogtreecommitdiff
path: root/src/wx/doremi_certificate_dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/doremi_certificate_dialog.cc')
-rw-r--r--src/wx/doremi_certificate_dialog.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/doremi_certificate_dialog.cc b/src/wx/doremi_certificate_dialog.cc
index c4c2115f0..ffb2a0f99 100644
--- a/src/wx/doremi_certificate_dialog.cc
+++ b/src/wx/doremi_certificate_dialog.cc
@@ -55,10 +55,8 @@ DoremiCertificateDialog::download ()
downloaded (false);
_message->SetLabel (_("Downloading certificate"));
-#ifdef DCPOMATIC_OSX
- /* This is necessary on OS X, otherwise the SetLabel() above has no visible effect */
+ /* Hack: without this the SetLabel() above has no visible effect */
wxMilliSleep (200);
-#endif
signal_manager->when_idle (boost::bind (&DoremiCertificateDialog::finish_download, this, serial));
}
@@ -100,6 +98,7 @@ DoremiCertificateDialog::finish_download (string serial)
}
if (error) {
+ _message->SetLabel (wxT (""));
error_dialog (this, std_to_wx (error.get ()));
} else {
_message->SetLabel (_("Certificate downloaded"));
@@ -112,4 +111,3 @@ DoremiCertificateDialog::set_sensitivity ()
{
_download->Enable (!_serial->IsEmpty ());
}
-