summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-07-25 10:52:09 +0100
committerCarl Hetherington <cth@carlh.net>2019-07-25 10:52:09 +0100
commit08376d150bbadfdb8a981b27a3963d24ee12da1e (patch)
tree78bace7d2c997afbd2df1402748656817f3d2a7b /src
parent7c730205e50014347bd96ab9735346d0b5922798 (diff)
Fix crash when loading a film from the command line.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic.cc6
1 files 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);