mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Fix tristate bool columns not being clearable in the book list
This commit is contained in:
parent
40f764283b
commit
0c39b683b0
@ -973,7 +973,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
if not val:
|
||||
val = None
|
||||
elif typ == 'bool':
|
||||
val = bool(value)
|
||||
val = value if value is None else bool(value)
|
||||
elif typ == 'rating':
|
||||
val = int(value)
|
||||
val = 0 if val < 0 else 5 if val > 5 else val
|
||||
|
Loading…
x
Reference in New Issue
Block a user