From 814448e8ac1b166d0da3a02e2e31e8498043b953 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 2 Aug 2010 19:59:49 +0000 Subject: [PATCH] it's ok if it is an array as well svn path=/trunk/KDE/kdebase/runtime/; revision=1158468 --- scriptengines/javascript/javascriptdataengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptengines/javascript/javascriptdataengine.cpp b/scriptengines/javascript/javascriptdataengine.cpp index c1aff8b9e..bef56f457 100644 --- a/scriptengines/javascript/javascriptdataengine.cpp +++ b/scriptengines/javascript/javascriptdataengine.cpp @@ -234,7 +234,7 @@ QStringList JavaScriptDataEngine::sources() const { QScriptValueList args; QScriptValue rv = callFunction("sources", args); - if (rv.isValid() && rv.isVariant()) { + if (rv.isValid() && (rv.isVariant() || rv.isArray())) { return rv.toVariant().toStringList(); }