From aa9521b0e0f810a9ba94d7f6c7f9100c3f69d862 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 15 Dec 2009 03:29:48 +0100 Subject: First form of protocol handling --- src/mainwindow.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b141401c..a9d014ef 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -45,7 +45,6 @@ #include "webinspectordock.h" #include "urlbar.h" #include "tabbar.h" -#include "newtabpage.h" #include "adblockmanager.h" // Ui Includes @@ -108,7 +107,6 @@ MainWindow::MainWindow() , m_popup( new KPassivePopup(this) ) , m_hidePopup( new QTimer(this) ) , m_ac( new KActionCollection(this) ) - , m_loadingNewTabPage(false) { // enable window size "auto-save" setAutoSaveSettings(); @@ -1164,25 +1162,3 @@ void MainWindow::openActionUrl(QAction *action) } } - - -bool MainWindow::newTabPage(const KUrl &url) -{ - if(m_loadingNewTabPage) - return false; - - if ( url == KUrl("about:closedTabs") - || url == KUrl("about:history") - || url == KUrl("about:bookmarks") - || url == KUrl("about:favorites") - || url == KUrl("about:home") - ) - { - m_loadingNewTabPage = true; - NewTabPage p(currentTab()->page()); - p.generate(url); - m_loadingNewTabPage = false; - return true; - } - return false; -} -- cgit v1.2.1