[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:
parent
2725de9170
commit
cae69fe10e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue