From 504e1516c0a4ab997a8b71393d51445289315006 Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Tue, 25 May 2010 21:32:30 +0530 Subject: Show proper URL on new background tab. The old behaviour was to target the current url bar, which wasn't the right one when a background tab was opened. The new code finds the right bar for the newly opened tab and sets its URL BUG: 238641 --- src/application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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(w->mainView()->widgetBar()->widget(tabIndex)); + barForTab->setQUrl(url); WebView *view = tab->view(); -- cgit v1.2.1