diff --git a/shell/scripting/scriptengine.cpp b/shell/scripting/scriptengine.cpp index f368e7e3b..a17ba1a70 100644 --- a/shell/scripting/scriptengine.cpp +++ b/shell/scripting/scriptengine.cpp @@ -882,7 +882,8 @@ QScriptValue ScriptEngine::desktops(QScriptContext *context, QScriptEngine *engi int count = 0; foreach (Plasma::Containment *c, env->corona()->containments()) { - if (!isPanel(c)) { + //make really sure we get actual desktops, so check for a non empty activty id + if (!isPanel(c) && !c->activity().isEmpty()) { containments.setProperty(count, env->wrap(c)); ++count; }