baloo runner: Remove custom handling of possible duplicates

This is now done on the frameworks side using the X-Plasma-Runner-Unique-Results
property and the id of the matches. Consequently we can drop this workaround.
wilder-5.24
Alexander Lohnau 5 years ago
parent f7efe4ea24
commit 41d383a8fc
No known key found for this signature in database
GPG Key ID: 1F58708D54A003E7
  1. 5
      runners/baloo/baloosearchrunner.cpp

@ -88,11 +88,6 @@ RemoteMatches SearchRunner::Match(const QString &searchTerm)
// Filter out duplicates
QSet<QUrl> foundUrls;
// The location runner handles file paths, otherwise we would end up with duplicate entries
QFileInfo fileInfo(KShell::tildeExpand(searchTerm));
if (fileInfo.exists()) {
foundUrls << QUrl::fromLocalFile(fileInfo.absoluteFilePath());
}
RemoteMatches matches;
matches << matchInternal(searchTerm, QStringLiteral("Audio"), i18n("Audio"), foundUrls);

Loading…
Cancel
Save