Summary: | Opening a link in the background changes the URL of the currently active tab | ||
---|---|---|---|
Product: | [Unmaintained] rekonq | Reporter: | Panagiotis Papadopoulos <pano_90> |
Component: | general | Assignee: | Andrea Diamantini <adjam7> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | echidnaman |
Priority: | NOR | ||
Version: | latest git snapshot | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 237890 |
Description
Panagiotis Papadopoulos
2010-05-24 03:33:12 UTC
commit 504e1516c0a4ab997a8b71393d51445289315006 Author: Nikhil Marathe <nsm.nikhil@gmail.com> Date: Tue May 25 21:32:30 2010 +0530 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 diff --git a/src/application.cpp b/src/application.cpp index 6525b9a..23e5b09 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(); *** Bug 238890 has been marked as a duplicate of this bug. *** |