summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/subtitle_panel.cc3
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