projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20ff90b
)
Select CPL by name in the player (#1357).
author
Carl Hetherington
<cth@carlh.net>
Mon, 13 Aug 2018 15:54:37 +0000
(16:54 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 13 Aug 2018 23:03:34 +0000
(
00:03
+0100)
src/tools/dcpomatic_player.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_player.cc
b/src/tools/dcpomatic_player.cc
index fce069d7edd6c743ae7716ffa9ab4a3d3b1d919c..513a5c4e748f720b6f7cc72de2c792e04b495fb3 100644
(file)
--- a/
src/tools/dcpomatic_player.cc
+++ b/
src/tools/dcpomatic_player.cc
@@
-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;
}
}