From 08376d150bbadfdb8a981b27a3963d24ee12da1e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Jul 2019 10:52:09 +0100 Subject: [PATCH] Fix crash when loading a film from the command line. --- src/tools/dcpomatic.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2