X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontrols.cc;h=c48628ed1244a37c4abe70c682d34b9c76267dea;hb=refs%2Ftags%2Fv2.13.50;hp=feef2e91c53c87862abe0f9ff8baec2536a3c4ea;hpb=095c02bd546d73c918bb1df3ee62a3ba4f2c81f0;p=dcpomatic.git 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