Make the 'why not' messages for VF a bit clearer.
[dcpomatic.git] / src / wx / video_panel.cc
index e1d9fcb123c1ffc31da68cc1fe050ad8586eeae1..6e237e0d2e3fbe4c2a4cec60179252431bb77587 100644 (file)
@@ -567,7 +567,13 @@ VideoPanel::setup_sensitivity ()
 
        string why_not;
        bool const can_reference = dcp && dcp->can_reference_video (_parent->film(), 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 video.");
+       } else {
+               cannot = _("Cannot reference this DCP's video: ") + std_to_wx(why_not);
+       }
+       setup_refer_button (_reference, _reference_note, dcp, can_reference, cannot);
 
        bool const enable = !_reference->GetValue() && _use->GetValue();