summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 6525b9af..23e5b095 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -336,7 +336,10 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
// rapidly show first loading url..
- w->mainView()->urlBar()->setQUrl(url);
+ int tabIndex = w->mainView()->indexOf(tab);
+ Q_ASSERT( tabIndex != -1 );
+ UrlBar *barForTab = qobject_cast<UrlBar *>(w->mainView()->widgetBar()->widget(tabIndex));
+ barForTab->setQUrl(url);
WebView *view = tab->view();