mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c9f5f787b3
commit
2277ed4b17
@ -928,7 +928,10 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
if role == Qt.DisplayRole: # orientation is vertical
|
||||
return QVariant(section+1)
|
||||
if role == Qt.DecorationRole:
|
||||
return self.marked_icon if self.db.data.get_marked(self.db.data.index_to_id(section)) else self.row_decoration
|
||||
try:
|
||||
return self.marked_icon if self.db.data.get_marked(self.db.data.index_to_id(section)) else self.row_decoration
|
||||
except (ValueError, IndexError):
|
||||
pass
|
||||
return NONE
|
||||
|
||||
def flags(self, index):
|
||||
|
Loading…
x
Reference in New Issue
Block a user