From 0a308f31cc029373978cf5c8b329859a4ac4ec0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Sun, 10 Jun 2012 11:38:05 -0500 Subject: Only Update URL Actions if the Sender is the Current Tab Only Update URL Actions from MainView::webViewUrlChanged if the Sender is the Current Tab REVIEW: 105184 --- src/mainview.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index a9bc5407..773f4ab3 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -633,11 +633,16 @@ void MainView::webViewUrlChanged(const QUrl &url) if (!view) return; - int index = indexOf(view->parentWidget()); + WebTab *tab = qobject_cast(view->parentWidget()); + if (!tab) + return; + + int index = indexOf(tab); if (ReKonfig::hoveringTabOption() == 2) tabBar()->setTabToolTip(index, url.toString()); - rApp->mainWindow()->updateHistoryActions(); + if (tab == rApp->mainWindow()->currentTab()) + rApp->mainWindow()->updateHistoryActions(); } -- cgit v1.2.1