This commit is contained in:
Kovid Goyal 2013-10-15 09:28:08 +05:30
parent c9f5f787b3
commit 2277ed4b17

View File

@ -928,7 +928,10 @@ class BooksModel(QAbstractTableModel): # {{{
if role == Qt.DisplayRole: # orientation is vertical
return QVariant(section+1)
if role == Qt.DecorationRole:
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):