Commit 74eda4bc authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Christoph Cullmann

Fix regression: duplicates were shown again

commit a7ba6eb0 regressed duplicates showing in the
Quick Open view.

Reviewers: gregormi, #kate, cullmann

Reviewed By: #kate, cullmann

Subscribers: cullmann, kwrite-devel

Tags: #kate

Differential Revision:
parent 9644265e
......@@ -99,8 +99,11 @@ void KateQuickOpenModel::refresh()
for (const auto& file : qAsConst(projectDocs)) {
QFileInfo fi(file);
// example of file: "/home/user/projects/myfile.txt" which is consistent with QUrl::toDisplayString(QUrl::PreferLocalFile)
allDocuments.push_back({ QUrl::fromLocalFile(fi.absoluteFilePath()), fi.fileName(), file, false });
const auto localFile = QUrl::fromLocalFile(fi.absoluteFilePath());
localFile.toString(QUrl::NormalizePathSegments | QUrl::PreferLocalFile), false });
/** Sort the arrays by filePath. */
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