diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-18 19:28:32 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-18 19:28:32 +0200 |
commit | cb1bbf87674c292b9b2f9e445101e93147ca4943 (patch) | |
tree | a9a055b532be73193a7687613191e3ef2b7aa91a /src/mainview.cpp | |
parent | Open links in new tab located near currently active tab (diff) | |
parent | Really fixed 2 commits ago options.. :) (diff) | |
download | rekonq-cb1bbf87674c292b9b2f9e445101e93147ca4943.tar.xz |
Merge branch 'HomePageEmbedded2'
Seems fixed now. WE HAVE HOME PAGE!!
Conflicts:
src/mainview.cpp
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 14 |
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; +} |