Fix another crash on close.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Jan 2019 22:12:57 +0000 (22:12 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Jan 2019 22:12:57 +0000 (22:12 +0000)
src/wx/content_panel.cc

index 318a344..b9d682e 100644 (file)
@@ -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 ();
 }