summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-07 23:31:07 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-09 13:45:00 +0100
commit2852855f19fadb6d7e43282e545a0bcaedc1a3f7 (patch)
tree91618c9da669ad68733e8b12c8fcf555a3e848c3 /src/tools
parentfa8bdd16e1b3742e921b928708614613b6a21036 (diff)
Tweak naming of KDM emails and attachments.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic_kdm.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc
index bc58be914..351c61750 100644
--- a/src/tools/dcpomatic_kdm.cc
+++ b/src/tools/dcpomatic_kdm.cc
@@ -50,6 +50,7 @@
using std::exception;
using std::list;
+using std::string;
using boost::shared_ptr;
using boost::bind;
@@ -273,8 +274,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> job (new SendKDMEmailJob (
- decrypted.annotation_text(),
+ film_name,
decrypted.content_title_text(),
_timing->from(), _timing->until(),
CinemaKDMs::collect (screen_kdms)