diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-10 20:36:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-10 20:36:10 +0000 |
| commit | d9c2cf78e6c5e465e7f76020f78f7ed1e71c3bc0 (patch) | |
| tree | 3744b833c3a717df67d0087ab49cc0c88a696907 /src/wx/controls.cc | |
| parent | 6835fc7930cc6323e64e07f654f7aaba8fc9e689 (diff) | |
Add File->Close to main DCP-o-matic (#1180).
Diffstat (limited to 'src/wx/controls.cc')
| -rw-r--r-- | src/wx/controls.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index ef93b8597..5e68baaa0 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -371,7 +371,10 @@ Controls::set_film (shared_ptr<Film> film) } _film = film; - _film_change_connection = _film->Change.connect (boost::bind(&Controls::film_change, this, _1, _2)); + + if (_film) { + _film_change_connection = _film->Change.connect (boost::bind(&Controls::film_change, this, _1, _2)); + } setup_sensitivity (); |
