From ae26e2a87cfe5e7b9734c0bf8c580bddd4065c8d Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 6 Aug 2010 01:26:28 +0000 Subject: [PATCH] push/pop a context when loading svn path=/trunk/KDE/kdelibs/; revision=1159708 --- animations/animationscriptengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/animations/animationscriptengine.cpp b/animations/animationscriptengine.cpp index e42b559ef..08a175b3c 100644 --- a/animations/animationscriptengine.cpp +++ b/animations/animationscriptengine.cpp @@ -196,9 +196,11 @@ bool loadScript(const QString &path, const QString &prefix) QString tmp(buffer.readAll()); QScriptEngine *engine = AnimationScriptEngine::globalEngine(); + engine->pushContext(); s_prefix = prefix; QScriptValue def(engine->evaluate(tmp, path)); s_prefix.clear(); + engine->popContext(); if (engine->hasUncaughtException()) { const QScriptValue error = engine->uncaughtException(); QString file = error.property("fileName").toString();