Fix regression: duplicates were shown again
ClosedPublic

Authored by tcanabrava on Nov 23 2018, 10:07 AM.

Details

Summary

commit a7ba6eb000 regressed duplicates showing in the
Quick Open view.

Diff Detail

Repository
R40 Kate
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tcanabrava created this revision.Nov 23 2018, 10:07 AM
Restricted Application added a project: Kate. · View Herald TranscriptNov 23 2018, 10:07 AM
Restricted Application added a subscriber: kwrite-devel. · View Herald Transcript
tcanabrava requested review of this revision.Nov 23 2018, 10:07 AM
gregormi added a comment.EditedNov 24 2018, 9:11 AM

Sorry for the regression.

I wonder, when I now look at katequickopenmodel.h:

struct ModelEntry {

QUrl url; // used for actually opening a selected file (local or remote)
QString fileName; // display string for left column
QString filePath; // display string for right column
bool bold; // format line in bold text or not

};

if it would now make sense to use the 'url' to find duplicates instead of 'filePath'. The former is more stable than the latter.

gregormi retitled this revision from Don't Show Duplicates to Fix regression: duplicates were shown again.Nov 24 2018, 1:31 PM
cullmann accepted this revision.Nov 24 2018, 4:13 PM
cullmann added a subscriber: cullmann.

I have no issues with changing the algo to use the url, the question is: should other parts use the url, too?
In any case, I apply this quickfix now.

This revision is now accepted and ready to land.Nov 24 2018, 4:13 PM
This revision was automatically updated to reflect the committed changes.