mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
3ccbb75c06
commit
24cb0337f2
@ -86,7 +86,9 @@ class HeaderView(QHeaderView): # {{{
|
|||||||
sm = self.selectionModel()
|
sm = self.selectionModel()
|
||||||
if opt.orientation == Qt.Vertical:
|
if opt.orientation == Qt.Vertical:
|
||||||
try:
|
try:
|
||||||
opt.icon = model.headerData(logical_index, opt.orientation, Qt.DecorationRole)
|
val = model.headerData(logical_index, opt.orientation, Qt.DecorationRole)
|
||||||
|
if val is not None:
|
||||||
|
opt.icon = val
|
||||||
opt.iconAlignment = Qt.AlignVCenter
|
opt.iconAlignment = Qt.AlignVCenter
|
||||||
except (IndexError, ValueError, TypeError):
|
except (IndexError, ValueError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user