diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2010-05-20 20:06:07 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2010-05-20 20:06:07 +0200 |
commit | ccbc7ee39a3e1fc34f8c56cd7524c86fde41562c (patch) | |
tree | fa516f442b1c78f9210030c46c159766e5e2b083 /src | |
parent | Fix download handling (diff) | |
download | rekonq-ccbc7ee39a3e1fc34f8c56cd7524c86fde41562c.tar.xz |
improve search of title for an url in the history: use hash table from HistoryFilterModel
Diffstat (limited to 'src')
-rw-r--r-- | src/history/historymanager.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp index e7e80841..8a29aa90 100644 --- a/src/history/historymanager.cpp +++ b/src/history/historymanager.cpp @@ -517,23 +517,6 @@ bool HistoryManager::clearDownloadsHistory() QString HistoryManager::titleForHistoryUrl(QString url) { - QString title = ""; - - int i = 0; - while (i < history().count() && title.isEmpty()) - { - if (history().at(i).url == url) - { - title = history().at(i).title; - } - i++; - } - - if (title.isEmpty()) - { - title = url; - } - - return title; + return history().at(m_historyFilterModel->historyLocation(url)).title; } |