]> git.sesse.net Git - kdenlive/commitdiff
Fix effect attribute "type" being ignored if value is != "audio"
authorTill Theato <root@ttill.de>
Sat, 28 Aug 2010 19:35:48 +0000 (19:35 +0000)
committerTill Theato <root@ttill.de>
Sat, 28 Aug 2010 19:35:48 +0000 (19:35 +0000)
svn path=/trunk/kdenlive/; revision=4775

src/customtrackview.cpp

index b74b749741d0b45c8565a9c3eef985e341ff9997..660b037bb46a14d66bff25df3dd6537787e658a1 100644 (file)
@@ -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);
                     continue;
                 }
-            } 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);