From cae69fe10ea57f5421beceb4882da081f6153a14 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 23 Mar 2020 17:22:40 +0100 Subject: [PATCH] [fileitemactionplugin] Use async DBus call Otherwise the call will block and freeze the calling process, e.g. dolphin or plasmashell BUG: 419133 --- fileitemactionplugin/sendfileitemaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileitemactionplugin/sendfileitemaction.cpp b/fileitemactionplugin/sendfileitemaction.cpp index efa766810..bf8e17336 100644 --- a/fileitemactionplugin/sendfileitemaction.cpp +++ b/fileitemactionplugin/sendfileitemaction.cpp @@ -94,7 +94,7 @@ void SendFileItemAction::sendFile() 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")); msg.setArguments(QVariantList() << url.toString()); - DBusHelper::sessionBus().call(msg); + DBusHelper::sessionBus().asyncCall(msg); } }