diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-05 02:29:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-05 02:29:57 +0100 |
| commit | e1c43614ad31ce276b923f9b1d280ad0c102c4b1 (patch) | |
| tree | a0ddc98e93186b84ace4cf414c7fd8e9c9e01a3f | |
| parent | 3c1c4880c249957cdd871586833584467410ed0b (diff) | |
Allow start of DCP encode job after pausing export.
| -rw-r--r-- | src/tools/dcpomatic.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 3d9d571af..d859e0937 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -69,6 +69,7 @@ #include "lib/cross.h" #include "lib/cross.h" #include "lib/dcp_content.h" +#include "lib/dcp_transcode_job.h" #include "lib/dcpomatic_log.h" #include "lib/dcpomatic_socket.h" #include "lib/dkdm_wrapper.h" @@ -1223,11 +1224,7 @@ private: void set_menu_sensitivity () { auto jobs = JobManager::instance()->get (); - auto i = jobs.begin(); - while (i != jobs.end() && (*i)->json_name() != "transcode") { - ++i; - } - bool const dcp_creation = (i != jobs.end ()) && !(*i)->finished (); + auto const dcp_creation = std::any_of(jobs.begin(), jobs.end(), [](shared_ptr<const Job> job) { return dynamic_pointer_cast<const DCPTranscodeJob>(job); }); bool const have_cpl = _film && !_film->cpls().empty (); bool const have_single_selected_content = _film_editor->content_panel()->selected().size() == 1; bool const have_selected_content = !_film_editor->content_panel()->selected().empty(); |
