From 3064ebbde6453b900572806eaf8d78c207293100 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 14 Feb 2010 11:49:31 +0100 Subject: this fix urlbar behaviour, removing focus from there and enabling loading animation. Temporary fix?? --- src/urlbar/urlbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/urlbar/urlbar.cpp') diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 1b6ebca8..290ac034 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -37,6 +37,7 @@ #include "mainwindow.h" #include "webview.h" #include "historymanager.h" +#include "webtab.h" // KDE Includes #include @@ -204,6 +205,9 @@ void UrlBar::activated(const QString& urlString) if (urlString.isEmpty()) return; + // this fix urlbar behaviour, removing focus from there and enabling + // loading animation. Temporary fix?? + Application::instance()->mainWindow()->currentTab()->setFocus(); setUrl(urlString); emit activated(m_currentUrl); } -- cgit v1.2.1