Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
a8ac157b
Commit
a8ac157b
authored
Nov 11, 2021
by
Alexander Lohnau
💬
Browse files
Port away from deprecated KDesktopFileActions::userDefinedServices overload
parent
82202a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/settings/contextmenu/contextmenusettingspage.cpp
View file @
a8ac157b
...
...
@@ -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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment