Commit 0c3cb3d1 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from KToolInvocation::kdeinitExecWait

It's about to be deprecated. Instead of launching kget via kdeinitExecWait we can jsut rely on DBus activation
parent 075fac9c
......@@ -178,14 +178,6 @@ void KGetPlugin::slotImportLinks()
// Remove any duplicates links from the list...
m_linkList.removeDuplicates();
if (!QDBusConnection::sessionBus().interface()->isServiceRegistered("org.kde.kget") &&
KToolInvocation::kdeinitExecWait("kget") != 0) {
KMessageBox::sorry(partWidget(parent()),
i18n("Unable to communicate with the KGet download manager."),
i18n("Communication Error"));
return;
}
OrgKdeKgetMainInterface kgetInterface("org.kde.kget", "/KGet", QDBusConnection::sessionBus());
kgetInterface.importLinks(m_linkList);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment