summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-08 20:11:32 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-08 20:11:32 +0000
commit6ab3bf8add89cf16fd9d7f644527a2ca8207e83e (patch)
tree1e7737f208de4ef418fa8577b5467d4b36e6c1c0 /src
parenta9172427858ec747ed5ff6ff4c2ab6eba1613135 (diff)
Disable content audio selector if there is none (#41).
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_editor.cc4
1 files 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;