it's ok if it is an array as well
svn path=/trunk/KDE/kdebase/runtime/; revision=1158468
This commit is contained in:
parent
39c4c8d3c6
commit
814448e8ac
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user