[fileitemactionplugin] Use async DBus call

Otherwise the call will block and freeze the calling process, e.g. dolphin or plasmashell

BUG: 419133
This commit is contained in:
Nicolas Fella 2020-03-23 17:22:40 +01:00
parent 2725de9170
commit cae69fe10e

View file

@ -94,7 +94,7 @@ void SendFileItemAction::sendFile()
for (const QUrl& url : urls) { for (const QUrl& url : urls) {
QDBusMessage msg = QDBusMessage::createMethodCall(QStringLiteral("org.kde.kdeconnect"), QStringLiteral("/modules/kdeconnect/devices/") + id + QStringLiteral("/share"), QStringLiteral("org.kde.kdeconnect.device.share"), QStringLiteral("shareUrl")); QDBusMessage msg = QDBusMessage::createMethodCall(QStringLiteral("org.kde.kdeconnect"), QStringLiteral("/modules/kdeconnect/devices/") + id + QStringLiteral("/share"), QStringLiteral("org.kde.kdeconnect.device.share"), QStringLiteral("shareUrl"));
msg.setArguments(QVariantList() << url.toString()); msg.setArguments(QVariantList() << url.toString());
DBusHelper::sessionBus().call(msg); DBusHelper::sessionBus().asyncCall(msg);
} }
} }