diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-17 21:39:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-17 21:39:40 +0100 |
| commit | a332bf3423b5dbe79566f96b7ad39ac96b3a890b (patch) | |
| tree | 0e24870ad402a20be95738971e4f947379df89da /src | |
| parent | 2d5922e23644b723d6144df91720ffbd3d15457b (diff) | |
Fix sensitivity of 'refer' button in the subtitle panel.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/subtitle_panel.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/subtitle_panel.cc b/src/wx/subtitle_panel.cc index d2f0e4c11..bd5c5f636 100644 --- a/src/wx/subtitle_panel.cc +++ b/src/wx/subtitle_panel.cc @@ -255,6 +255,9 @@ SubtitlePanel::setup_sensitivity () _stream->Enable (!reference && ffmpeg_subs == 1); _subtitle_view_button->Enable (!reference && subrip_or_dcp_subs == 1); _fonts_dialog_button->Enable (!reference && subrip_or_dcp_subs == 1); + + ContentList sel = _parent->selected (); + _reference->Enable (sel.size() == 1 && dynamic_pointer_cast<DCPContent> (sel.front ())); } void |
