Make the 'why not' messages for VF a bit clearer.
[dcpomatic.git] / src / wx / text_panel.cc
index 27465ad6879ee6336db60bd5064e60842216f143..88857b0eb7b6a1acdbfc43054b70fb5ec687bd93 100644 (file)
@@ -523,7 +523,13 @@ TextPanel::setup_sensitivity ()
 
        string why_not;
        bool const can_reference = dcp && dcp->can_reference_text (_parent->film(), _original_type, why_not);
-       setup_refer_button (_reference, _reference_note, dcp, can_reference, why_not);
+       wxString cannot;
+       if (why_not.empty()) {
+               cannot = _("Cannot reference this DCP's subtitles or captions.");
+       } else {
+               cannot = _("Cannot reference this DCP's subtitles or captions: ") + std_to_wx(why_not);
+       }
+       setup_refer_button (_reference, _reference_note, dcp, can_reference, cannot);
 
        bool const reference = _reference->GetValue ();