+2015-05-09 Carl Hetherington <cth@carlh.net>
+
+ * Disable OK until a download succeeds in the certificate
+ downloader (#404).
+
2015-05-07 Carl Hetherington <cth@carlh.net>
* Version 2.0.43 released.
-add9a03356d3d392e234354df4800b9042e0f426
01919a9e691375de4eb0069bc8cf179bee4dd7b6
1d63d0309d071254fcf4da65d3710e94fadd38e8
0c0211871d0be5b3409adfc88d2979ca5b439b0a
/*
- Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void
DolbyCertificateDialog::download ()
{
+ downloaded (false);
_message->SetLabel (_("Downloading certificate"));
#ifdef DCPOMATIC_OSX
_message->SetLabel (std_to_wx (error.get ()));
} else {
_message->SetLabel (_("Certificate downloaded"));
+ downloaded (true);
}
}
/*
- Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
return;
}
+ downloaded (false);
_message->SetLabel (_("Downloading certificate"));
#ifdef DCPOMATIC_OSX
error_dialog (this, std_to_wx (error.get ()));
} else {
_message->SetLabel (_("Certificate downloaded"));
+ downloaded (true);
}
}
*/
-#include <boost/bind.hpp>
-#include "download_certificate_dialog.h"
#include "wx_util.h"
+#include "download_certificate_dialog.h"
+#include <boost/bind.hpp>
using boost::function;
_download->Enable (false);
layout ();
+
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+ ok->Enable (false);
}
+
+void
+DownloadCertificateDialog::downloaded (bool done)
+{
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+ ok->Enable (done);
+}
+
+
protected:
void add_common_widgets ();
+ void downloaded (bool done);
boost::function<void (boost::filesystem::path)> _load;
wxStaticText* _message;