summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-05-21 09:28:45 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-06-06 23:48:27 +0200
commit3d0017226abe2f2b42787de12fea2ba7cdc668be (patch)
treea7bfdf7fd156f127945a8b491d47aa38c0e3c75f /src/tabwindow
parentUse webkit general font to render rekonq pages (diff)
downloadrekonq-3d0017226abe2f2b42787de12fea2ba7cdc668be.tar.xz
Move from about: to rekonq: protocol for our special links
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabwidget.cpp10
1 files changed, 5 insertions, 5 deletions
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<TabHistory> 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);