From 26004a80620e27bfca865992165f75c22fca17f7 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 21 Jul 2010 16:17:54 +0000 Subject: [PATCH] slightly more sensicle; no difference in behaviour, though svn path=/trunk/KDE/kdebase/workspace/; revision=1152633 --- scriptengine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scriptengine.cpp b/scriptengine.cpp index 490c2ed63..e5275b7c4 100644 --- a/scriptengine.cpp +++ b/scriptengine.cpp @@ -197,19 +197,19 @@ QScriptValue ScriptEngine::activities(QScriptContext *context, QScriptEngine *en { Q_UNUSED(context) - QScriptValue panels = engine->newArray(); + QScriptValue containments = engine->newArray(); ScriptEngine *env = envFor(engine); int count = 0; foreach (Plasma::Containment *c, env->m_corona->containments()) { if (!isPanel(c)) { - panels.setProperty(count, env->wrap(c)); + containments.setProperty(count, env->wrap(c)); ++count; } } - panels.setProperty("length", count); - return panels; + containments.setProperty("length", count); + return containments; } QScriptValue ScriptEngine::panels(QScriptContext *context, QScriptEngine *engine)