summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-16 02:56:56 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-16 02:56:56 +0100
commit2f2153fa74998881c0df2e7e546b0a88ebe02693 (patch)
tree31811c4aadbe743d34e56529af56ff9ed800984f /src/protocolhandler.cpp
parentlocal files krun! (diff)
downloadrekonq-2f2153fa74998881c0df2e7e546b0a88ebe02693.tar.xz
set urlbar
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp6
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);