Commit a8ac157b authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port away from deprecated KDesktopFileActions::userDefinedServices overload

parent 82202a24
......@@ -275,7 +275,7 @@ void ContextMenuSettingsPage::loadServices()
const KService::List entries = KServiceTypeTrader::self()->query(QStringLiteral("KonqPopupMenu/Plugin"));
for (const KService::Ptr &service : entries) {
const QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kservices5/" % service->entryPath());
const QList<KServiceAction> serviceActions = KDesktopFileActions::userDefinedServices(file, true);
const QList<KServiceAction> serviceActions = KDesktopFileActions::userDefinedServices(KService(file), true);
const KDesktopFile desktopFile(file);
const QString subMenuName = desktopFile.desktopGroup().readEntry("X-KDE-Submenu");
......
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