it's ok if it is an array as well

svn path=/trunk/KDE/kdebase/runtime/; revision=1158468
This commit is contained in:
Aaron J. Seigo 2010-08-02 19:59:49 +00:00
parent 39c4c8d3c6
commit 814448e8ac

View File

@ -234,7 +234,7 @@ QStringList JavaScriptDataEngine::sources() const
{ {
QScriptValueList args; QScriptValueList args;
QScriptValue rv = callFunction("sources", args); QScriptValue rv = callFunction("sources", args);
if (rv.isValid() && rv.isVariant()) { if (rv.isValid() && (rv.isVariant() || rv.isArray())) {
return rv.toVariant().toStringList(); return rv.toVariant().toStringList();
} }