From d2c01d7ee65e203d4bf36076835a2e3d40e1e51a Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Wed, 21 Mar 2018 23:41:53 -0400 Subject: [PATCH] Always display plain titles in tab tooltips Closes #3741 --- qutebrowser/mainwindow/tabwidget.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 72d3cff22..fa8b9939a 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -148,9 +148,13 @@ class TabWidget(QTabWidget): title = '' if fmt is None else fmt.format(**fields) tabbar = self.tabBar() + # Only change the tab title if it changes, setting the tab title causes + # a size recalculation which is slow. if tabbar.tabText(idx) != title: tabbar.setTabText(idx, title) - tabbar.setTabToolTip(idx, title) + + # always show only plain title in tooltips + tabbar.setTabToolTip(idx, fields['title']) def get_tab_fields(self, idx): """Get the tab field data."""