diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-25 00:24:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-25 00:24:23 +0100 |
| commit | 1ee83badb3eec51fe477913f0a0bb01a718e106b (patch) | |
| tree | e809ec1c9a05d4899a8d607f5d6df5939bb6dfb4 /src | |
| parent | 33bed904667e76d54cd1a24870b3705e839ae80b (diff) | |
Crash fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
