diff options
author | Nikhil Marathe <nsm.nikhil@gmail.com> | 2010-05-25 21:32:30 +0530 |
---|---|---|
committer | Nikhil Marathe <nsm.nikhil@gmail.com> | 2010-05-25 21:32:30 +0530 |
commit | 504e1516c0a4ab997a8b71393d51445289315006 (patch) | |
tree | ae96859711a96ecb3248ecef14b4742a86d4c2ce /src/application.cpp | |
parent | Update CHANGELOG (diff) | |
download | rekonq-504e1516c0a4ab997a8b71393d51445289315006.tar.xz |
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
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 5 |
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(); |