mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Port away from KDesktopFileActions::userDefinedServices
This is planned to go away since the only real user being kdesvn and that is ported to a C++ plugin
This commit is contained in:
parent
064b2539de
commit
c907ef92c1
|
@ -280,7 +280,7 @@ void ContextMenuSettingsPage::loadServices()
|
||||||
QStringList files = KFileUtils::findAllUniqueFiles(locations);
|
QStringList files = KFileUtils::findAllUniqueFiles(locations);
|
||||||
|
|
||||||
for (const auto &file : std::as_const(files)) {
|
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 KDesktopFile desktopFile(file);
|
||||||
const QString subMenuName = desktopFile.desktopGroup().readEntry("X-KDE-Submenu");
|
const QString subMenuName = desktopFile.desktopGroup().readEntry("X-KDE-Submenu");
|
||||||
|
|
Loading…
Reference in a new issue