diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-26 01:34:14 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-26 01:34:14 +0200 |
commit | 8c234d52681e5eed61be80e5f5af4f1a57278c24 (patch) | |
tree | 0aae06c732f15a6f24b21edb0fd339143f3ee729 /src | |
parent | Ligther screenshots (diff) | |
parent | Show proper URL on new background tab. (diff) | |
download | rekonq-8c234d52681e5eed61be80e5f5af4f1a57278c24.tar.xz |
Merge commit 'refs/merge-requests/2277' of git://gitorious.org/rekonq/mainline into m2227
Diffstat (limited to 'src')
-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(); |