summaryrefslogtreecommitdiff
path: root/src/wx/controls.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-10 20:36:10 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-10 20:36:10 +0000
commitd9c2cf78e6c5e465e7f76020f78f7ed1e71c3bc0 (patch)
tree3744b833c3a717df67d0087ab49cc0c88a696907 /src/wx/controls.cc
parent6835fc7930cc6323e64e07f654f7aaba8fc9e689 (diff)
Add File->Close to main DCP-o-matic (#1180).
Diffstat (limited to 'src/wx/controls.cc')
-rw-r--r--src/wx/controls.cc5
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 ();