Enforce a minimum size for non-pinned tabs

Closes #2826
This commit is contained in:
Jay Kamat 2017-07-19 21:37:48 -07:00
parent fafa063bcd
commit 8dbb61e9e3
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -517,7 +517,9 @@ class TabBar(QTabBar):
no_pinned_count = self.count() - self.pinned_count
pinned_width = tab_width_pinned_conf * self.pinned_count
no_pinned_width = self.width() - pinned_width
# Prevent any tabs from being smaller than the min size
no_pinned_width = max(self.width() - pinned_width,
minimum_size.width() * no_pinned_count)
if pinned:
width = tab_width_pinned_conf