summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-19 01:35:48 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-19 01:35:48 +0100
commit94d13e93d7187c873e3a37e4c9b71ab9f62ae43a (patch)
tree4bfe9937a92222ceb64851cdc5c7e7b7234c3317
parent095c02bd546d73c918bb1df3ee62a3ba4f2c81f0 (diff)
Fix crash on close.v2.13.50
-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>