#include "lib/exceptions.h"
#include "lib/cinema.h"
#include "lib/kdm.h"
+#include "lib/send_kdm_email_job.h"
using std::cout;
using std::string;
public:
Frame (wxString const & title)
: wxFrame (NULL, -1, title)
+ , _hints_dialog (0)
, _servers_list_dialog (0)
{
#ifdef DCPOMATIC_WINDOWS_CONSOLE
if (d->write_to ()) {
write_kdm_files (film, d->screens (), d->dcp (), d->from (), d->until (), d->directory ());
} else {
- email_kdms (film, d->screens (), d->dcp (), d->from (), d->until ());
+ JobManager::instance()->add (
+ shared_ptr<Job> (new SendKDMEmailJob (film, d->screens (), d->dcp (), d->from (), d->until ()))
+ );
}
} catch (KDMError& e) {
error_dialog (this, e.what ());