mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Port away from deprecated KDesktopFileActions::userDefinedServices overload
This commit is contained in:
parent
82202a24e2
commit
a8ac157bdc
|
@ -275,7 +275,7 @@ void ContextMenuSettingsPage::loadServices()
|
||||||
const KService::List entries = KServiceTypeTrader::self()->query(QStringLiteral("KonqPopupMenu/Plugin"));
|
const KService::List entries = KServiceTypeTrader::self()->query(QStringLiteral("KonqPopupMenu/Plugin"));
|
||||||
for (const KService::Ptr &service : entries) {
|
for (const KService::Ptr &service : entries) {
|
||||||
const QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kservices5/" % service->entryPath());
|
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 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