summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-11 11:57:33 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-11 11:57:33 +0200
commitf0b55360c6ba8da48098362aa85ca88fa293b5a1 (patch)
treec3e8b480be8d7dae5731c0acc064845a413c651f /src/mainview.cpp
parentMerge commit 'refs/merge-requests/1750' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-f0b55360c6ba8da48098362aa85ca88fa293b5a1.tar.xz
Restored recently closed tabs
I'm not a big fan of this implementation, but modifying history for this is impossible (no sense) and storing it somewhere.. don't know Perhaps someone has some better ideas here :)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 0abf6996..3c78a0f6 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -179,6 +179,8 @@ void MainView::clear()
// What exactly do we need to clear here?
m_urlBar->clearHistory();
m_urlBar->clear();
+
+ m_recentlyClosedTabs.clear();
}
@@ -411,6 +413,7 @@ void MainView::slotCloseTab(int index)
return;
}
hasFocus = tab->hasFocus();
+ m_recentlyClosedTabs.prepend(tab->url());
}
QWidget *webView = widget(index);
@@ -569,3 +572,9 @@ QLabel *MainView::animatedLoading(int index, bool addMovie)
m_tabBar->setTabButton(index, QTabBar::LeftSide, label);
return label;
}
+
+
+KUrl::List MainView::recentlyClosedTabs()
+{
+ return m_recentlyClosedTabs;
+}