From 0cf2975e4f5917a6d2a2829d37efef4d298315c2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 1 Nov 2019 09:21:26 +0100 Subject: [PATCH] GUI: mux: set title from Blu-ray disc library But only if no title has been set yet. See also #2644. --- NEWS.md | 3 +++ src/mkvtoolnix-gui/merge/input.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index ff8f68fe6..4dceabcc4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -8,6 +8,9 @@ disc library meta data will be parsed, and the biggest thumbnail, if present, will be added as a new attachment with name `cover.jpg` (extension depends on thumbnail's extension). Implements #2644. +* MKVToolNix GUI: multiplexer: when adding a playlist from a Blu-ray disc, the + title from the disc library meta data will be set as the new file title if + the disc library meta data contains one & no title has been set yet. ## Bug fixes diff --git a/src/mkvtoolnix-gui/merge/input.cpp b/src/mkvtoolnix-gui/merge/input.cpp index 40f09733d..afa732627 100644 --- a/src/mkvtoolnix-gui/merge/input.cpp +++ b/src/mkvtoolnix-gui/merge/input.cpp @@ -1247,6 +1247,9 @@ Tab::addDataFromIdentifiedBlurayFiles(QList const &files) { if (!info) continue; + if (!info->m_title.empty()) + setTitleMaybe(Q(info->m_title)); + addAttachmentsFromIdentifiedBluray(*info); } }