diff options
author | David E. Narváez <david.narvaez@computer.org> | 2012-06-10 11:38:05 -0500 |
---|---|---|
committer | David E. Narváez <david.narvaez@computer.org> | 2012-06-10 11:38:05 -0500 |
commit | 0a308f31cc029373978cf5c8b329859a4ac4ec0f (patch) | |
tree | f12c1c7ced28fa7ebbb82b6dcababb8edc8d69b4 /src/mainview.cpp | |
parent | Add missing i18n to Window string (diff) | |
download | rekonq-0a308f31cc029373978cf5c8b329859a4ac4ec0f.tar.xz |
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
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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<WebTab *>(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(); } |