diff options
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; } |