summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-06 23:37:39 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-06 23:37:39 +0000
commit5cc679b5c96e4a2916159f956e63d0d1a8724f86 (patch)
tree38d2c1fb5678f623f24fee73462785a35c5bc751 /src
parentd59096a931025f787b88eee5169374575bb1a0f9 (diff)
Disable subtitle view/font buttons with FFmpeg content (#1236).
Diffstat (limited to 'src')
-rw-r--r--src/wx/text_panel.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index ed49d8484..3c5abcefc 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -480,8 +480,9 @@ TextPanel::setup_sensitivity ()
_dcp_track->Enable (!reference && any_subs > 0 && use && type == TEXT_CLOSED_CAPTION);
_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);
+ /* Ideally we would check here to see if the FFmpeg content has "string" subs (i.e. not bitmaps) */
+ _text_view_button->Enable (!reference && any_subs > 0 && ffmpeg_subs == 0);
+ _fonts_dialog_button->Enable (!reference && any_subs > 0 && ffmpeg_subs == 0 && type == TEXT_OPEN_SUBTITLE);
_appearance_dialog_button->Enable (!reference && any_subs > 0 && use && type == TEXT_OPEN_SUBTITLE);
}