summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-14 11:49:31 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-14 11:49:31 +0100
commit3064ebbde6453b900572806eaf8d78c207293100 (patch)
tree0817dcd58d7a86783b6a6590880ce4cba8c88bc3 /src/urlbar/urlbar.cpp
parentKrazy issues (1st branch) (diff)
downloadrekonq-3064ebbde6453b900572806eaf8d78c207293100.tar.xz
this fix urlbar behaviour, removing focus from there and enabling
loading animation. Temporary fix??
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp4
1 files changed, 4 insertions, 0 deletions
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 <KDebug>
@@ -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);
}