From 1ee83badb3eec51fe477913f0a0bb01a718e106b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 25 Jul 2014 00:24:23 +0100 Subject: Crash fix. --- src/wx/film_viewer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index f2f6ba23d..2416c6776 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -410,7 +410,8 @@ FilmViewer::player_changed (bool frequent) void FilmViewer::setup_sensitivity () { - bool const c = !_film->content().empty (); + bool const c = _film && !_film->content().empty (); + _slider->Enable (c); _back_button->Enable (c); _forward_button->Enable (c); -- cgit v1.2.3