Commit 89cdeb16 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix custom effect type sometimes incorrect.

Fixes #336
parent c6f537be
Pipeline #173814 passed with stage
in 6 minutes and 51 seconds
......@@ -536,8 +536,7 @@ void CollapsibleEffectView::slotSaveEffect()
namedId.prepend(QStringLiteral("fadeout_"));
}
effect.setAttribute(QStringLiteral("id"), namedId);
QString masterType = effect.attribute(QLatin1String("type"));
effect.setAttribute(QStringLiteral("type"), (masterType == QLatin1String("audio") || masterType == QLatin1String("customAudio")) ? QStringLiteral("customAudio") : QStringLiteral("customVideo"));
effect.setAttribute(QStringLiteral("type"), m_model->isAudio() ? QStringLiteral("customAudio") : QStringLiteral("customVideo"));
QDomElement effectname = effect.firstChildElement(QStringLiteral("name"));
effect.removeChild(effectname);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment