mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
...
This commit is contained in:
parent
3538bbe4dc
commit
966fae7793
@ -769,10 +769,10 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
|
|
||||||
for k, fmt in self.db.prefs['column_color_rules']:
|
for k, fmt in self.db.prefs['column_color_rules']:
|
||||||
if k == key:
|
if k == key:
|
||||||
col = self.column_color(id_, key, fmt, self.db,
|
ccol = self.column_color(id_, key, fmt, self.db,
|
||||||
self.formatter, self.color_cache, self.colors)
|
self.formatter, self.color_cache, self.colors)
|
||||||
if col is not None:
|
if ccol is not None:
|
||||||
return col
|
return ccol
|
||||||
|
|
||||||
if self.is_custom_column(key) and \
|
if self.is_custom_column(key) and \
|
||||||
self.custom_columns[key]['datatype'] == 'enumeration':
|
self.custom_columns[key]['datatype'] == 'enumeration':
|
||||||
@ -791,10 +791,10 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
|
|
||||||
if self.color_row_fmt_cache:
|
if self.color_row_fmt_cache:
|
||||||
key = color_row_key
|
key = color_row_key
|
||||||
col = self.column_color(id_, key, self.color_row_fmt_cache,
|
ccol = self.column_color(id_, key, self.color_row_fmt_cache,
|
||||||
self.db, self.formatter, self.color_cache, self.colors)
|
self.db, self.formatter, self.color_cache, self.colors)
|
||||||
if col is not None:
|
if ccol is not None:
|
||||||
return col
|
return ccol
|
||||||
|
|
||||||
self.column_color.mi = None
|
self.column_color.mi = None
|
||||||
return NONE
|
return NONE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user