]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port away from KDesktopFileActions::userDefinedServices
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Sat, 21 Oct 2023 05:10:42 +0000 (07:10 +0200)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Sat, 21 Oct 2023 05:10:42 +0000 (07:10 +0200)
This is planned to go away since the only real user being kdesvn and that is ported to a C++ plugin

src/settings/contextmenu/contextmenusettingspage.cpp

index 1c83e477ea43305d559b85fd805705c6a8752182..00c00270479260ee2043de4b6d14545ff705639c 100644 (file)
@@ -280,7 +280,7 @@ void ContextMenuSettingsPage::loadServices()
     QStringList files = KFileUtils::findAllUniqueFiles(locations);
 
     for (const auto &file : std::as_const(files)) {
-        const QList<KServiceAction> serviceActions = KDesktopFileActions::userDefinedServices(KService(file), true);
+        const QList<KServiceAction> serviceActions = KService(file).actions();
 
         const KDesktopFile desktopFile(file);
         const QString subMenuName = desktopFile.desktopGroup().readEntry("X-KDE-Submenu");