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
Utilities
Kate
Commits
9049c997
Commit
9049c997
authored
Feb 06, 2022
by
Waqar Ahmed
Committed by
Kåre Särs
Feb 06, 2022
Browse files
search: Use documentName for untitled files
parent
419d1be6
Pipeline
#133926
passed with stage
in 2 minutes and 19 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/search/MatchModel.cpp
View file @
9049c997
...
...
@@ -548,6 +548,10 @@ QString MatchModel::infoHtmlString() const
QString
MatchModel
::
fileToHtmlString
(
const
MatchFile
&
matchFile
)
const
{
if
(
matchFile
.
fileUrl
.
isEmpty
()
&&
matchFile
.
doc
)
{
return
matchFile
.
doc
->
documentName
();
}
QString
path
=
matchFile
.
fileUrl
.
isLocalFile
()
?
localFileDirUp
(
matchFile
.
fileUrl
).
path
()
:
matchFile
.
fileUrl
.
url
();
if
(
!
path
.
isEmpty
()
&&
!
path
.
endsWith
(
QLatin1Char
(
'/'
)))
{
path
+=
QLatin1Char
(
'/'
);
...
...
Write
Preview
Markdown
is supported
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