Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
System Settings
Commits
047083b2
Commit
047083b2
authored
Apr 08, 2021
by
Laurent Montel
😁
Browse files
Use directly Qt::SkipEmptyParts
parent
da325b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/MenuItem.cpp
View file @
047083b2
...
...
@@ -172,7 +172,7 @@ MenuItem *MenuItem::descendantForModule(const QString &moduleName)
if
(
d
->
service
)
{
if
(
d
->
service
->
desktopEntryName
()
==
moduleName
)
{
return
this
;
}
else
if
(
item
().
fileName
().
length
()
>
0
&&
item
().
fileName
().
split
(
QLatin1Char
(
'.'
),
Q
String
::
SkipEmptyParts
).
first
()
==
moduleName
)
{
}
else
if
(
item
().
fileName
().
length
()
>
0
&&
item
().
fileName
().
split
(
QLatin1Char
(
'.'
),
Q
t
::
SkipEmptyParts
).
first
()
==
moduleName
)
{
return
this
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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