summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index c28953d7..a662bbb0 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -176,6 +176,8 @@ void MainView::clear()
/// TODO What exactly do we need to clear here?
m_urlBar->clearHistory();
m_urlBar->clear();
+
+ m_recentlyClosedTabs.clear();
}
@@ -299,7 +301,7 @@ void MainView::newTab()
urlBar()->setUrl(KUrl(""));
urlBar()->setFocus();
- HomePage p;
+ HomePage p(w);
switch(ReKonfig::newTabsBehaviour())
{
@@ -405,11 +407,13 @@ void MainView::slotCloseTab(int index)
int risp = KMessageBox::questionYesNo(this,
i18n("You have modified this page and when closing it you would lose the modifications.\n"
"Do you really want to close this page?\n"),
- i18n("Do you really want to close this page?"));
+ i18n("Closing tab confirmation"));
if (risp == KMessageBox::No)
return;
}
hasFocus = tab->hasFocus();
+
+ m_recentlyClosedTabs.prepend(tab->url());
}
QWidget *webView = widget(index);
@@ -585,3 +589,9 @@ void MainView::resizeEvent(QResizeEvent *event)
{
KTabWidget::resizeEvent(event);
}
+
+
+KUrl::List MainView::recentlyClosedTabs()
+{
+ return m_recentlyClosedTabs;
+}