summaryrefslogtreecommitdiff
path: root/src/history/historymanager.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-05-20 20:06:07 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-05-20 20:06:07 +0200
commitccbc7ee39a3e1fc34f8c56cd7524c86fde41562c (patch)
treefa516f442b1c78f9210030c46c159766e5e2b083 /src/history/historymanager.cpp
parentFix download handling (diff)
downloadrekonq-ccbc7ee39a3e1fc34f8c56cd7524c86fde41562c.tar.xz
improve search of title for an url in the history: use hash table from HistoryFilterModel
Diffstat (limited to 'src/history/historymanager.cpp')
-rw-r--r--src/history/historymanager.cpp19
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;
}