From: Carl Hetherington Date: Fri, 8 Mar 2013 20:11:32 +0000 (+0000) Subject: Disable content audio selector if there is none (#41). X-Git-Tag: v2.0.48~1337^2~571^2~9 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=6ab3bf8add89cf16fd9d7f644527a2ca8207e83e;p=dcpomatic.git Disable content audio selector if there is none (#41). --- 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;