Commit 9049c997 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Kåre Särs
Browse files

search: Use documentName for untitled files

parent 419d1be6
Pipeline #133926 passed with stage
in 2 minutes and 19 seconds
......@@ -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('/');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment