Select CPL by name in the player (#1357).
authorCarl Hetherington <cth@carlh.net>
Mon, 13 Aug 2018 15:54:37 +0000 (16:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 13 Aug 2018 23:03:34 +0000 (00:03 +0100)
src/tools/dcpomatic_player.cc

index fce069d7edd6c743ae7716ffa9ab4a3d3b1d919c..513a5c4e748f720b6f7cc72de2c792e04b495fb3 100644 (file)
@@ -228,10 +228,11 @@ public:
                DCPExaminer ex (dcp);
                int id = ID_view_cpl;
                BOOST_FOREACH (shared_ptr<dcp::CPL> i, ex.cpls()) {
-                       wxMenuItem* j = _cpl_menu->AppendRadioItem(id, i->id());
-                       if (!dcp->cpl() || i->id() == *dcp->cpl()) {
-                               j->Check(true);
-                       }
+                       wxMenuItem* j = _cpl_menu->AppendRadioItem(
+                               id,
+                               wxString::Format("%s (%s)", std_to_wx(i->annotation_text()).data(), std_to_wx(i->id()).data())
+                               );
+                       j->Check(!dcp->cpl() || i->id() == *dcp->cpl());
                        ++id;
                }
        }