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
Network
KIO Extras
Commits
270f2487
Commit
270f2487
authored
Nov 18, 2022
by
Alexander Kuznetsov
Committed by
Nicolas Fella
Nov 18, 2022
Browse files
[activities] Fix showing associated files
BUG: 453110
(cherry picked from commit
a1f96106
)
parent
b3905584
Pipeline
#269979
passed with stage
in 8 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
activities/KioActivities.cpp
View file @
270f2487
...
...
@@ -57,8 +57,8 @@ public:
const
auto
fullPath
=
url
.
adjusted
(
QUrl
::
StripTrailingSlash
).
path
();
const
auto
path
=
QStringView
(
fullPath
).
mid
(
fullPath
.
startsWith
(
QLatin1Char
(
'/'
))
?
1
:
0
);
if
(
activity
)
{
*
activity
=
path
.
mid
(
0
,
path
.
indexOf
(
QStringLiteral
(
"/"
))
-
1
).
toString
();
if
(
activity
&&
!
path
.
isEmpty
()
)
{
*
activity
=
path
.
mid
(
0
,
path
.
indexOf
(
QStringLiteral
(
"/"
))).
toString
();
}
if
(
filePath
)
{
...
...
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