mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-08 11:11:51 +00:00
GUI: chapters: correctly check for edition entry in »expand timecodes«
Otherwise ChapterTimeStart and ChapterTimeEnd nodes may be created as direct children of an EditionEntry node resulting in invalid chapters.
This commit is contained in:
parent
8ce03bb2a5
commit
3c84f38ebe
@ -1,3 +1,12 @@
|
||||
2015-09-19 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* MKVToolNix GUI: chapter editor bug fix: whenever the additional
|
||||
modification of »expanding start/end timecodes to include the
|
||||
minimum/maximum timecodes of their children« was run on an edition
|
||||
entry then ChapterTimeStart and sometimes ChapterTimeEnd nodes
|
||||
were inserted as direct children of the EditionEntry node when
|
||||
saving. This resulted in invalid chapters.
|
||||
|
||||
2015-09-18 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* MKVToolNix GUI: new merge tool feature: when dragging & dropping
|
||||
|
@ -1082,7 +1082,7 @@ Tab::expandTimecodes(QStandardItem *item) {
|
||||
if (!item)
|
||||
return {};
|
||||
|
||||
auto chapter = m_chapterModel->chapterFromItem(item);
|
||||
auto chapter = item->parent() ? m_chapterModel->chapterFromItem(item) : ChapterPtr{};
|
||||
if (!chapter) {
|
||||
for (auto row = 0, numRows = item->rowCount(); row < numRows; ++row)
|
||||
expandTimecodes(item->child(row));
|
||||
|
Loading…
Reference in New Issue
Block a user