Only enable text language for open subs.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Aug 2018 09:27:13 +0000 (10:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Aug 2018 09:27:13 +0000 (10:27 +0100)
src/wx/text_panel.cc

index 9922f4e7025c673da754a12bc215c739e0272263..164b9dd7dccbe42d2780b95d2068577ff87d1bf8 100644 (file)
@@ -443,7 +443,7 @@ TextPanel::setup_sensitivity ()
        _y_scale->Enable (!reference && any_subs > 0 && use && type == TEXT_OPEN_SUBTITLE);
        _line_spacing->Enable (!reference && use && type == TEXT_OPEN_SUBTITLE);
        _dcp_track->Enable (!reference && any_subs > 0 && use && type == TEXT_CLOSED_CAPTION);
-       _language->Enable (!reference && any_subs > 0 && use);
+       _language->Enable (!reference && any_subs > 0 && use && type == TEXT_OPEN_SUBTITLE);
        _stream->Enable (!reference && ffmpeg_subs == 1);
        _text_view_button->Enable (!reference);
        _fonts_dialog_button->Enable (!reference && type == TEXT_OPEN_SUBTITLE);