Commit 2c7abee5 authored by Till Theato's avatar Till Theato

Fix effect attribute "type" being ignored if value is != "audio"

svn path=/trunk/kdenlive/; revision=4775
parent 76a91c65
......@@ -1693,7 +1693,7 @@ void CustomTrackView::slotAddEffect(QDomElement effect, GenTime pos, int track)
emit displayMessage(i18n("Cannot add an audio effect to this clip"), ErrorMessage);
} else if (effect.hasAttribute("type") == false) {
} else if (effect.attribute("type") == "video" || !effect.hasAttribute("type")) {
// Don't add video effect on audio clips
if (item->isAudioOnly() || item->clipType() == AUDIO) {
emit displayMessage(i18n("Cannot add a video effect to this clip"), ErrorMessage);
Markdown is supported
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