mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix set_marked not clearing previously marked ids
This commit is contained in:
parent
9f138f31fc
commit
2c20826122
@ -798,6 +798,9 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
|
|
||||||
# Set the values in the cache
|
# Set the values in the cache
|
||||||
marked_col = self.FIELD_MAP['marked']
|
marked_col = self.FIELD_MAP['marked']
|
||||||
|
for id_ in self.iterallids():
|
||||||
|
self._data[id_][marked_col] = None
|
||||||
|
|
||||||
for id_, val in self.marked_ids_dict.iteritems():
|
for id_, val in self.marked_ids_dict.iteritems():
|
||||||
try:
|
try:
|
||||||
self._data[id_][marked_col] = val
|
self._data[id_][marked_col] = val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user