From 0f9594f7c43f0b86c634e6f4e92b14fc9783bfee Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 21 Oct 2012 12:06:52 +0200 Subject: Fix new page creation on blank target url click --- src/webtab/protocolhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/webtab/protocolhandler.cpp') diff --git a/src/webtab/protocolhandler.cpp b/src/webtab/protocolhandler.cpp index 26fd481a..dcf9d1a4 100644 --- a/src/webtab/protocolhandler.cpp +++ b/src/webtab/protocolhandler.cpp @@ -32,7 +32,6 @@ // Local Includes #include "historymanager.h" -#include "webwindow.h" #include "webpage.h" #include "webtab.h" #include "urlbar.h" @@ -97,7 +96,7 @@ ProtocolHandler::ProtocolHandler(QObject *parent) } -void ProtocolHandler::setWindow(WebWindow *w) +void ProtocolHandler::setWindow(QWidget *w) { _webwin = w; _lister->setMainWindow(_webwin); @@ -275,8 +274,9 @@ void ProtocolHandler::showResults(const KFileItemList &list) _frame->setHtml(html); qobject_cast(_frame->page())->setIsOnRekonqPage(true); - _webwin->urlBar()->setQUrl(_url); - _webwin->view()->setFocus(); + // FIXME: how can we handle this? +// _webwin->urlBar()->setQUrl(_url); +// _webwin->view()->setFocus(); if (_frame->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)) return; -- cgit v1.2.1