summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-10 22:12:57 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-10 22:12:57 +0000
commit1f8b61e4d89622c9087c8c49ea988ad1c903f64e (patch)
treee0c70d22c774eeeec87a71919e609c9df53029ed /src/wx/content_panel.cc
parentf0957fd41d1915b8046dc0c2aeb662e1e8c288c7 (diff)
Fix another crash on close.
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 318a344f2..b9d682e4d 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -589,7 +589,11 @@ ContentPanel::set_film (shared_ptr<Film> film)
film_changed (Film::CONTENT);
film_changed (Film::AUDIO_CHANNELS);
- check_selection ();
+
+ if (_film) {
+ check_selection ();
+ }
+
setup_sensitivity ();
}