From d8a627bb253d0c7760d720661b6739cec3df8262 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Thu, 8 Sep 2011 20:16:48 +0000 Subject: [PATCH] Fix possible crash in case effect "update" functction throws an exception. svn path=/trunk/kdenlive/; revision=5866 --- src/documentvalidator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documentvalidator.cpp b/src/documentvalidator.cpp index 3722a0d9..85966ebf 100644 --- a/src/documentvalidator.cpp +++ b/src/documentvalidator.cpp @@ -1100,7 +1100,7 @@ void DocumentValidator::updateEffects() QString effectString = updateRules.call(QScriptValue(), QScriptValueList() << serviceVersion << effectVersion << scriptDoc.toString()).toString(); - if (!effectString.isEmpty()) { + if (!effectString.isEmpty() && !scriptEngine.hasUncaughtException()) { scriptDoc.setContent(effectString); QDomNode updatedEffect = effect.ownerDocument().importNode(scriptDoc.documentElement(), true); effect.parentNode().replaceChild(updatedEffect, effect); -- 2.39.2