Merge branch 'KDE/4.10'

Conflicts:
	plasma/generic/applets/lock_logout/metadata.desktop
This commit is contained in:
Marco Martin 2013-01-22 13:20:13 +01:00
commit 240dd25d8d

View file

@ -182,7 +182,12 @@ QScriptValue kwinCallDBus(QScriptContext *context, QScriptEngine *engine)
QDBusMessage msg = QDBusMessage::createMethodCall(service, path, interface, method);
QVariantList arguments;
for (int i=4; i<argumentsCount; ++i) {
arguments << context->argument(i).toVariant();
if (context->argument(i).isArray()) {
QStringList stringArray = engine->fromScriptValue<QStringList>(context->argument(i));
arguments << qVariantFromValue(stringArray);
} else {
arguments << context->argument(i).toVariant();
}
}
if (!arguments.isEmpty()) {
msg.setArguments(arguments);