Commit 41f9ed62 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Remove base path from files in search result

parent fd7b2247
......@@ -558,7 +558,7 @@ QString MatchModel::fileToHtmlString(const MatchFile &matchFile) const
path += QLatin1Char('/');
}
path = path.toHtmlEscaped();
path.remove(m_resultBaseDir);
QString tmpStr = QStringLiteral("%1<b>%2: %3</b>").arg(path, matchFile.fileUrl.fileName().toHtmlEscaped()).arg(matchFile.matches.size());
return tmpStr;
......
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