Modifed exception structure
This commit is contained in:
parent
f8dffb4e5c
commit
20eae4d671
@ -448,12 +448,14 @@ class TabBar(QTabBar):
|
|||||||
#TODO: relative size and/or configured one
|
#TODO: relative size and/or configured one
|
||||||
try:
|
try:
|
||||||
tab = objreg.get('tab', scope='tab', window=self._win_id, tab=index)
|
tab = objreg.get('tab', scope='tab', window=self._win_id, tab=index)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
if tab.data.pinned:
|
if tab.data.pinned:
|
||||||
size = QSize(40, height)
|
size = QSize(40, height)
|
||||||
qtutils.ensure_valid(size)
|
qtutils.ensure_valid(size)
|
||||||
return size
|
return size
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
# If we *do* have enough space, tabs should occupy the whole window
|
# If we *do* have enough space, tabs should occupy the whole window
|
||||||
# width.
|
# width.
|
||||||
#looks like this generates high cpu usage
|
#looks like this generates high cpu usage
|
||||||
|
Loading…
Reference in New Issue
Block a user