From 6ab3bf8add89cf16fd9d7f644527a2ca8207e83e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 8 Mar 2013 20:11:32 +0000 Subject: [PATCH] Disable content audio selector if there is none (#41). --- src/wx/film_editor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index dcd18c97f..82c8a76a8 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -1129,7 +1129,7 @@ FilmEditor::setup_subtitle_control_sensitivity () void FilmEditor::setup_audio_control_sensitivity () { - _use_content_audio->Enable (_generally_sensitive); + _use_content_audio->Enable (_generally_sensitive && _film && !_film->content_audio_streams().empty()); _use_external_audio->Enable (_generally_sensitive); bool const source = _generally_sensitive && _use_content_audio->GetValue(); @@ -1224,7 +1224,7 @@ FilmEditor::subtitle_stream_changed (wxCommandEvent &) void FilmEditor::setup_audio_details () { - if (!_film->audio_stream()) { + if (!_film->content_audio_stream()) { _audio->SetLabel (wxT ("")); } else { stringstream s; -- 2.30.2