summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-26 01:34:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-26 01:34:14 +0200
commit8c234d52681e5eed61be80e5f5af4f1a57278c24 (patch)
tree0aae06c732f15a6f24b21edb0fd339143f3ee729
parentLigther screenshots (diff)
parentShow proper URL on new background tab. (diff)
downloadrekonq-8c234d52681e5eed61be80e5f5af4f1a57278c24.tar.xz
Merge commit 'refs/merge-requests/2277' of git://gitorious.org/rekonq/mainline into m2227
-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();