[UrlCompleter] Don't show same urls multiple times

Closes #1096
remotes/origin/falkon
nowrep 12 years ago
parent 5a7789bd17
commit 0d5c86f8cd
  1. 1
      CHANGELOG
  2. 2
      src/lib/navigation/completer/locationcompletermodel.cpp

@ -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

@ -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);
}

Loading…
Cancel
Save