diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 15:20:49 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 15:20:49 +0200 |
commit | a0b3f0ae79e4c3b7f5794a5d94cd9fa7a57c46b2 (patch) | |
tree | 0cccb46edc130d88ab76996e7ad1a0669000032c /src | |
parent | inlined some of the most used get functions (diff) | |
parent | improve search of title for an url in the history: use hash table from Histor... (diff) | |
download | rekonq-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.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; } |