summaryrefslogtreecommitdiff
path: root/src/wx/content_sub_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-27 23:54:21 +0100
committerCarl Hetherington <cth@carlh.net>2018-03-27 23:54:21 +0100
commit8e56ed2c248f8c7143f9c7b84360b5a33a0cddd9 (patch)
tree9bccfd7d00de70fa9c26b2a5d9fe27cc4888b355 /src/wx/content_sub_panel.cc
parent3ae67788dcb1567c5d6df65e89cd84bf484e82be (diff)
Tweak wording of DCP referencing tips.
Diffstat (limited to 'src/wx/content_sub_panel.cc')
-rw-r--r--src/wx/content_sub_panel.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc
index dc6c1d2b8..93296d5b9 100644
--- a/src/wx/content_sub_panel.cc
+++ b/src/wx/content_sub_panel.cc
@@ -48,7 +48,11 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, sha
wxString s;
if (dcp && !can_reference) {
- s = _("Cannot reference this DCP. ") + std_to_wx(why_not);
+ if (why_not.empty()) {
+ s = _("Cannot reference this DCP.");
+ } else {
+ s = _("Cannot reference this DCP: ") + std_to_wx(why_not);
+ }
}
note->SetLabel (s);