aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-07-27 12:48:51 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-07-27 12:48:51 +0200
commit40830e7613bfce6d17bcecef58f0d19932161c6e (patch)
tree50dab2b720ee50386e52f648ec33817c9d6e9f55
parent132d7b2d019f18d303ca38583bb7ac73bde5e37c (diff)
Fix disabled bin effects when loading a project
-rw-r--r--src/mltcontroller/clipcontroller.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mltcontroller/clipcontroller.cpp b/src/mltcontroller/clipcontroller.cpp
index 474925f..a98038c 100644
--- a/src/mltcontroller/clipcontroller.cpp
+++ b/src/mltcontroller/clipcontroller.cpp
@@ -637,6 +637,9 @@ void ClipController::rebuildEffectList(ProfileInfo info)
QDomElement currenteffect = clipeffect.cloneNode().toElement();
// recover effect parameters
QDomNodeList params = currenteffect.elementsByTagName("parameter");
+ if (effect->get_int("disable") == 1) {
+ currenteffect.setAttribute("disable", 1);
+ }
for (int i = 0; i < params.count(); ++i) {
QDomElement param = params.item(i).toElement();
Timeline::setParam(info, param, effect->get(param.attribute("name").toUtf8().constData()));