add needed parens and remove trailing whitespace

This commit is contained in:
Marius 2017-06-18 23:07:38 +02:00
parent 68f172558b
commit ebd442ea95

View File

@ -536,8 +536,8 @@ class TabBar(QTabBar):
# If no_pinned_width is not divisible by no_pinned_count, add a
# pixel to some tabs so # that there is no ugly leftover space.
if no_pinned_count > 0 and
index < no_pinned_width % no_pinned_count:
if (no_pinned_count > 0 and
index < no_pinned_width % no_pinned_count):
width += 1
size = QSize(width, height)