diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-19 11:56:15 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-19 11:56:15 +0200 |
commit | 12810f40be01fad3384c0ae1527d0a0f5a378886 (patch) | |
tree | b03775518b8f4dd417041f59df1e8ab28071c704 /src/mainview.cpp | |
parent | Fixing rebase... (diff) | |
download | rekonq-12810f40be01fad3384c0ae1527d0a0f5a378886.tar.xz |
Porting recently closed tabs to use HistoryItem.
This way we can have more useful infos about
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index dbd59e91..1848e682 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -420,8 +420,11 @@ void MainView::slotCloseTab(int index) //store close tab except homepage if (!tab->url().prettyUrl().startsWith("rekonq:") && !tab->url().isEmpty()) { - m_recentlyClosedTabs.removeAll(tab->url()); - m_recentlyClosedTabs.prepend(tab->url()); + QString title = tab->title(); + QString url = tab->url().prettyUrl(); + HistoryItem item(url, QDateTime::currentDateTime(), title); + m_recentlyClosedTabs.removeAll(item); + m_recentlyClosedTabs.prepend(item); } } @@ -582,7 +585,7 @@ QLabel *MainView::animatedLoading(int index, bool addMovie) } -KUrl::List MainView::recentlyClosedTabs() +QList<HistoryItem> MainView::recentlyClosedTabs() { return m_recentlyClosedTabs; } |