projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8222e1f
)
Sort DKDMs by CPL name (#2297).
author
Carl Hetherington
<cth@carlh.net>
Wed, 17 Aug 2022 14:28:57 +0000
(16:28 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 17 Aug 2022 14:28:57 +0000
(16:28 +0200)
src/tools/dcpomatic_kdm.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_kdm.cc
b/src/tools/dcpomatic_kdm.cc
index c816c8e8b161f8e5a5da47edce370f4f2ed375f3..62955142a7aaf4dd073d77d51c910cffd67bc0b9 100644
(file)
--- a/
src/tools/dcpomatic_kdm.cc
+++ b/
src/tools/dcpomatic_kdm.cc
@@
-526,11
+526,13
@@
private:
} else {
/* Add base to the view */
wxTreeItemId added;
} else {
/* Add base to the view */
wxTreeItemId added;
+ auto parent_id = dkdm_to_id(base->parent());
if (previous) {
if (previous) {
- added = _dkdm->InsertItem(
dkdm_to_id(base->parent())
, *previous, std_to_wx(base->name()));
+ added = _dkdm->InsertItem(
parent_id
, *previous, std_to_wx(base->name()));
} else {
} else {
- added = _dkdm->AppendItem(
dkdm_to_id(base->parent())
, std_to_wx(base->name()));
+ added = _dkdm->AppendItem(
parent_id
, std_to_wx(base->name()));
}
}
+ _dkdm->SortChildren(parent_id);
_dkdm_id[added] = base;
}
_dkdm_id[added] = base;
}