summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-15 03:29:48 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-16 00:59:32 +0100
commitaa9521b0e0f810a9ba94d7f6c7f9100c3f69d862 (patch)
tree57dd9649ba0b69f1fa385416c9af9d78587f2de9 /src/mainwindow.cpp
parentfix spacing (diff)
downloadrekonq-aa9521b0e0f810a9ba94d7f6c7f9100c3f69d862.tar.xz
First form of protocol handling
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp24
1 files changed, 0 insertions, 24 deletions
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;
-}