diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-01-31 20:54:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-24 12:23:37 +0100 |
| commit | c94d763e07d9e7b029091e1ea64ba4f7758b3d5b (patch) | |
| tree | 1555280c1c566b0933e5525061335cd4168755d8 /src/tools/dcpomatic.cc | |
| parent | b9fa952cb97a61b7977c28f089c0b41f7d8a5d24 (diff) | |
Basic implementation of a tree view for DKDMs (#1012).
Diffstat (limited to 'src/tools/dcpomatic.cc')
| -rw-r--r-- | src/tools/dcpomatic.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 1e2dd47d4..b5f317942 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -66,6 +66,7 @@ #include "lib/dcp_content.h" #include "lib/ffmpeg_encoder.h" #include "lib/transcode_job.h" +#include "lib/dkdm_wrapper.h" #include <dcp/exceptions.h> #include <dcp/raw_convert.h> #include <wx/generic/aboutdlgg.h> @@ -690,9 +691,9 @@ private: if (kdm) { if (d->internal ()) { - vector<dcp::EncryptedKDM> dkdms = Config::instance()->dkdms (); - dkdms.push_back (kdm.get()); - Config::instance()->set_dkdms (dkdms); + shared_ptr<DKDMGroup> dkdms = Config::instance()->dkdms (); + dkdms->add (shared_ptr<DKDM> (new DKDM (kdm.get()))); + Config::instance()->changed (); } else { boost::filesystem::path path = d->directory() / (_film->dcp_name(false) + "_DKDM.xml"); kdm->as_xml (path); |
