summaryrefslogtreecommitdiff
path: root/src/webtab/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-21 12:06:52 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit0f9594f7c43f0b86c634e6f4e92b14fc9783bfee (patch)
tree8caf0c827fc9933edb3be56e790b9355f3014f70 /src/webtab/protocolhandler.cpp
parentenable webapp mode by calling "rekonq --webapp URL" :D (diff)
downloadrekonq-0f9594f7c43f0b86c634e6f4e92b14fc9783bfee.tar.xz
Fix new page creation on blank target url click
Diffstat (limited to 'src/webtab/protocolhandler.cpp')
-rw-r--r--src/webtab/protocolhandler.cpp8
1 files changed, 4 insertions, 4 deletions
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<WebPage *>(_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;