summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-10 23:39:37 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-11 11:58:15 +0100
commitafff21c17f2e9cbc295b5b6c71d7b3f8c9ec96fb (patch)
tree5b737eb9bf32fcf2602efbe97c18f328e6d9d55b /src
parent54ef7357a87885ec329a25e758fb6b132816ec67 (diff)
Fix crash.
Diffstat (limited to 'src')
-rw-r--r--src/wx/control_film_viewer.cc4
1 files changed, 2 insertions, 2 deletions
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> film)
update_position_slider ();
update_position_label ();
+
+ _film->Change.connect (boost::bind (&ControlFilmViewer::film_change, this, _1, _2));
}
void