diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-09 23:24:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-09 23:24:35 +0100 |
| commit | 886e0f9d08a241bef5baf328beb08a0d6996ae14 (patch) | |
| tree | 359423f6363ca4eef86e13467b5963e747dba5ca /src/wx/audio_panel.cc | |
| parent | 579d18cb7770efe2da03afaf6a33faaf624119e3 (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/audio_panel.cc')
| -rw-r--r-- | src/wx/audio_panel.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 183a3d4b9..d066c11e2 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -316,7 +316,13 @@ AudioPanel::setup_sensitivity () string why_not; bool const can_reference = dcp && dcp->can_reference_audio (_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 audio."); + } else { + cannot = _("Cannot reference this DCP's audio: ") + std_to_wx(why_not); + } + setup_refer_button (_reference, _reference_note, dcp, can_reference, cannot); if (_reference->GetValue ()) { _gain->wrapped()->Enable (false); |
