summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-21 15:20:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-21 15:20:49 +0200
commita0b3f0ae79e4c3b7f5794a5d94cd9fa7a57c46b2 (patch)
tree0cccb46edc130d88ab76996e7ad1a0669000032c /src
parentinlined some of the most used get functions (diff)
parentimprove search of title for an url in the history: use hash table from Histor... (diff)
downloadrekonq-a0b3f0ae79e4c3b7f5794a5d94cd9fa7a57c46b2.tar.xz
Merge commit 'refs/merge-requests/2269' of git://gitorious.org/rekonq/mainline into m2269
Diffstat (limited to 'src')
-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;
}