X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic.cc;h=ea3cfbe32c7697665208917074d1365285e5c57a;hb=b24fe6cc8a1e9a980bfd3f6df8476dfa86c3b3a2;hp=68bf20732a0685d79b3e44800a4003c921522093;hpb=8276ed82237c30935962874c974e5462737fb0fb;p=dcpomatic.git diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 68bf20732..ea3cfbe32 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -92,6 +92,9 @@ #include #include #include +#ifdef __WXGTK__ +#include +#endif #ifdef __WXMSW__ #include #endif @@ -876,10 +879,10 @@ private: ); - dcp::LocalTime from (Config::instance()->decryption_chain()->leaf().not_before()); - from.add_months (1); - dcp::LocalTime to (Config::instance()->decryption_chain()->leaf().not_after()); - to.add_months (-1); + dcp::LocalTime from (Config::instance()->signer_chain()->leaf().not_before()); + from.add_minutes (1); + dcp::LocalTime to (Config::instance()->signer_chain()->leaf().not_after()); + to.add_minutes (-1); optional kdm; try { @@ -1503,7 +1506,11 @@ public: : wxApp () , _frame (0) , _splash (0) - {} + { +#ifdef DCPOMATIC_LINUX + XInitThreads (); +#endif + } private: