summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/controls.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc
index feef2e91c..c48628ed1 100644
--- a/src/wx/controls.cc
+++ b/src/wx/controls.cc
@@ -365,7 +365,9 @@ Controls::film_changed ()
update_position_slider ();
update_position_label ();
- _film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
+ if (_film) {
+ _film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
+ }
}
shared_ptr<Film>