diff options
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r-- | src/urlbar/urlresolver.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index 300f33ef..787546cd 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -45,7 +45,7 @@ #include <QByteArray> // defines -#define MAX_ELEMENTS 10 +#define MAX_ELEMENTS 8 #define MIN_SUGGESTIONS 3 // NOTE @@ -133,10 +133,10 @@ UrlSearchList UrlResolver::orderedSearchItems() //compute lists computeSuggestions(); + computeHistory(); computeQurlFromUserInput(); computeWebSearches(); computeBookmarks(); - computeHistory(); return orderLists(); } @@ -263,6 +263,8 @@ UrlSearchList UrlResolver::orderLists() historyCount = _history.count(); bookmarksCount = _bookmarks.count(); commonCount = common.count(); + + kDebug() << "HISTORY COUNT: " << historyCount; //now fill the list to MAX_ELEMENTS if(availableEntries > 0) @@ -352,7 +354,7 @@ void UrlResolver::computeHistory() void UrlResolver::computeBookmarks() { QList<KBookmark> found = Application::bookmarkProvider()->find(_typedString); - + kDebug() << "FOUND: " << found.count(); Q_FOREACH(const KBookmark &b, found) { UrlSearchItem gItem(UrlSearchItem::Bookmark, b.url().url(), b.fullText()); |