Potential fix for disappearing DCP names under translation.
[dcpomatic.git] / src / wx / content_panel.cc
index 1d9f010bfda2d5808b55c60862cbf5a14fa8768b..b28d9ca229fb88e8c730cd0585448b8c0c8570d9 100644 (file)
@@ -468,7 +468,7 @@ ContentPanel::set_selection (weak_ptr<Content> wc)
 void
 ContentPanel::film_content_changed (int property)
 {
-       if (property == ContentProperty::PATH || property == DCPContentProperty::CAN_BE_PLAYED) {
+       if (property == ContentProperty::PATH || property == DCPContentProperty::NEEDS_ASSETS || property == DCPContentProperty::NEEDS_KDM) {
                setup ();
        }
 
@@ -501,7 +501,7 @@ ContentPanel::setup ()
                bool const needs_kdm = dcp && dcp->needs_kdm ();
                bool const needs_assets = dcp && dcp->needs_assets ();
 
-               string s = i->summary ();
+               wxString s = std_to_wx (i->summary ());
 
                if (!valid) {
                        s = _("MISSING: ") + s;
@@ -517,7 +517,7 @@ ContentPanel::setup ()
 
                wxListItem item;
                item.SetId (t);
-               item.SetText (std_to_wx (s));
+               item.SetText (s);
                item.SetData (i.get ());
                _content->InsertItem (item);