]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port away from deprecated KDesktopFileActions::userDefinedServices overload
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 11 Nov 2021 18:19:19 +0000 (19:19 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 1 Dec 2021 22:10:58 +0000 (22:10 +0000)
src/settings/contextmenu/contextmenusettingspage.cpp

index 0541b1020658d8098a27595175c49010d8282b4f..cfbfefe52573d9d780ccab9d6a8a329ec75f39ce 100644 (file)
@@ -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");