From 2f2153fa74998881c0df2e7e546b0a88ebe02693 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 16 Dec 2009 02:56:56 +0100 Subject: set urlbar --- src/protocolhandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 26766377..1d0981dc 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -29,6 +29,9 @@ // Local Includes #include "newtabpage.h" #include "application.h" +#include "mainwindow.h" +#include "mainview.h" +#include "urlbar.h" // KDE Includes #include @@ -108,7 +111,8 @@ bool ProtocolHandler::handle(const QNetworkRequest &request, QWebFrame *frame) else // dir { QString html = dirHandling(url); - frame->setHtml( html ); + frame->setHtml(html); + Application::instance()->mainWindow()->mainView()->urlBar()->setUrl(url); } // KUrl::List list; // list.append(url); -- cgit v1.2.1