From 3d0017226abe2f2b42787de12fea2ba7cdc668be Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 21 May 2013 09:28:45 +0200 Subject: Move from about: to rekonq: protocol for our special links --- src/tabwindow/tabwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tabwindow') diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp index 1b5bca30..494d99f0 100644 --- a/src/tabwindow/tabwidget.cpp +++ b/src/tabwindow/tabwidget.cpp @@ -241,7 +241,7 @@ void TabWidget::init() QList list = SessionManager::self()->closedSitesForWindow( QL1S("win") + QString::number(n) ); Q_FOREACH(const TabHistory & tab, list) { - if (tab.url.startsWith(QL1S("about"))) + if (tab.url.startsWith(QL1S("rekonq"))) continue; m_recentlyClosedTabs.removeAll(tab); m_recentlyClosedTabs.prepend(tab); @@ -309,7 +309,7 @@ void TabWidget::newTab(WebPage *page) switch (ReKonfig::newTabsBehaviour()) { case 0: // new tab page - tab->load(KUrl("about:home")); + tab->load(KUrl("rekonq:home")); break; case 2: // homepage tab->load(KUrl(ReKonfig::homePage())); @@ -650,12 +650,12 @@ void TabWidget::closeTab(int index, bool del) return; } - currentWebWindow()->load(KUrl("about:home")); + currentWebWindow()->load(KUrl("rekonq:home")); return; } if (!tabToClose->url().isEmpty() - && tabToClose->url().scheme() != QL1S("about") + && tabToClose->url().scheme() != QL1S("rekonq") && !tabToClose->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) ) { @@ -708,7 +708,7 @@ void TabWidget::detachTab(int index, RekonqWindow *toWindow) WebWindow *tab = webWindow(index); KUrl u = tab->url(); - if (u.scheme() == QL1S("about")) + if (u.scheme() == QL1S("rekonq")) { closeTab(index); loadUrl(u, Rekonq::NewWindow); -- cgit v1.2.1