mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1238636 [Calibre 1.6 / Find Duplicates Plugin /ERROR: Unhandled exception: <b>ValueError</b>:tuple.index(x): x not in tuple](https://bugs.launchpad.net/calibre/+bug/1238636)
This commit is contained in:
parent
5572db6fde
commit
a8a98dfeb1
@ -827,6 +827,9 @@ class GridView(QListView):
|
|||||||
changed = old_marked | current_marked
|
changed = old_marked | current_marked
|
||||||
m = self.model()
|
m = self.model()
|
||||||
for book_id in changed:
|
for book_id in changed:
|
||||||
self.update(m.index(m.db.data.id_to_index(book_id), 0))
|
try:
|
||||||
|
self.update(m.index(m.db.data.id_to_index(book_id), 0))
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user