From afff21c17f2e9cbc295b5b6c71d7b3f8c9ec96fb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 10 Sep 2018 23:39:37 +0100 Subject: Fix crash. --- src/wx/control_film_viewer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wx/control_film_viewer.cc b/src/wx/control_film_viewer.cc index a374aec1b..69b2b5b5c 100644 --- a/src/wx/control_film_viewer.cc +++ b/src/wx/control_film_viewer.cc @@ -104,8 +104,6 @@ ControlFilmViewer::ControlFilmViewer (wxWindow* parent, bool outline_content, bo JobManager::instance()->ActiveJobsChanged.connect ( bind (&ControlFilmViewer::active_jobs_changed, this, _2) ); - - _film->Change.connect (boost::bind (&ControlFilmViewer::film_change, this, _1, _2)); } void @@ -351,6 +349,8 @@ ControlFilmViewer::set_film (shared_ptr film) update_position_slider (); update_position_label (); + + _film->Change.connect (boost::bind (&ControlFilmViewer::film_change, this, _1, _2)); } void -- cgit v1.2.3