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 318a344f2a415216bfbb91a24f9d9f94e7818121..b9d682e4d9c2008874c8430dd006f4402e4f2a6d 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 ();
 }