summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp9
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();
}