From: Carl Hetherington Date: Thu, 25 Jul 2019 09:52:09 +0000 (+0100) Subject: Fix crash when loading a film from the command line. X-Git-Tag: v2.15.15~8 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=08376d150bbadfdb8a981b27a3963d24ee12da1e;hp=7c730205e50014347bd96ab9735346d0b5922798 Fix crash when loading a film from the command line. --- diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 572a5be40..d3cd2b06b 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1552,6 +1552,9 @@ private: _frame->Show (); + signal_manager = new wxSignalManager (this); + Bind (wxEVT_IDLE, boost::bind (&App::idle, this, _1)); + if (!_film_to_load.empty() && boost::filesystem::is_directory (_film_to_load)) { try { _frame->load_film (_film_to_load); @@ -1572,9 +1575,6 @@ private: } } - signal_manager = new wxSignalManager (this); - Bind (wxEVT_IDLE, boost::bind (&App::idle, this, _1)); - Bind (wxEVT_TIMER, boost::bind (&App::check, this)); _timer.reset (new wxTimer (this)); _timer->Start (1000);