diff options
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r-- | src/protocolhandler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <klocalizedstring.h> @@ -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); |