summaryrefslogtreecommitdiff
path: root/src/wx/text_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-09 23:24:32 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-09 23:24:35 +0100
commit886e0f9d08a241bef5baf328beb08a0d6996ae14 (patch)
tree359423f6363ca4eef86e13467b5963e747dba5ca /src/wx/text_panel.cc
parent579d18cb7770efe2da03afaf6a33faaf624119e3 (diff)
Make the 'why not' messages for VF a bit clearer.
Before it sounded like just because we couldn't refer to (e.g.) the audio we couldn't refer to any part of the DCP.
Diffstat (limited to 'src/wx/text_panel.cc')
-rw-r--r--src/wx/text_panel.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index 27465ad68..88857b0eb 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -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 ();