serializer: skip overwriting subtitle params

Fixes #1934
This commit is contained in:
itsmattkc
2022-05-15 11:27:28 -07:00
parent 1fa51613f9
commit a2ff3d607a
@@ -700,6 +700,14 @@ void ProjectSerializer220403::LoadImmediate(QXmlStreamReader *reader, Node *node
NodeValue::Type data_type = node->GetInputDataType(input);
// HACK: SubtitleParams contain the actual subtitle data, so loading/replacing it will overwrite
// the valid subtitles. We hack around it by simply skipping loading subtitles, we'll see
// if this ends up being an issue in the future.
if (data_type == NodeValue::kSubtitleParams) {
reader->skipCurrentElement();
return;
}
while (XMLReadNextStartElement(reader)) {
if (reader->name() == QStringLiteral("standard")) {
// Load standard value