1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 10:16:34 +01:00

[UrlCompleter] Don't show same urls multiple times

Closes #1096
This commit is contained in:
nowrep 2013-12-05 19:48:24 +01:00
parent 5a7789bd17
commit 0d5c86f8cd
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Version 1.5.0
* fixed: displaying a lot of RSS feeds in RSS widget in locationbar
* fixed: enabling disabled rules in AdBlock now works everytime
* fixed: parsing OpenSearch files with XML declaration
* fixed: don't show urls multiple times in url completer
Version 1.4.4
* released 1 September 2013

View File

@ -213,6 +213,8 @@ QSqlQuery LocationCompleterModel::createQuery(const QString &searchString, const
query.append(QString("AND (NOT %1.url=?) ").arg(table));
}
query.append(QString("GROUP BY %1.url ").arg(table));
if (!orderBy.isEmpty()) {
query.append("ORDER BY " + orderBy);
}