X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_kdm.cc;h=df0df54896a87e3cfc6c92b674fe3a496217dc04;hb=eb78e6e2c04ceee1d7cff25cd0b5f3486b38a7a5;hp=bc58be914a93ae1c13ad243748a9f9f1b9004908;hpb=dd7ba98abf729061e30c0b0fbb4cb6fd0485f16a;p=dcpomatic.git diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index bc58be914..df0df5489 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -41,6 +41,9 @@ #include #include #include +#ifdef __WXOSX__ +#include +#endif #include #include @@ -50,11 +53,12 @@ using std::exception; using std::list; +using std::string; using boost::shared_ptr; using boost::bind; enum { - ID_help_report_a_problem, + ID_help_report_a_problem = 1, }; class DOMFrame : public wxFrame @@ -273,8 +277,12 @@ private: wxString::Format (s, int(screen_kdms.size()), std_to_wx(_output->directory().string()).data()) ); } else { + string film_name = decrypted.annotation_text (); + if (film_name.empty ()) { + film_name = decrypted.content_title_text (); + } shared_ptr job (new SendKDMEmailJob ( - decrypted.annotation_text(), + film_name, decrypted.content_title_text(), _timing->from(), _timing->until(), CinemaKDMs::collect (screen_kdms)