mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1740987 [Error: Unhandled exception after search](https://bugs.launchpad.net/calibre/+bug/1740987)
This commit is contained in:
parent
589214ce67
commit
bfcd447b6c
@ -316,8 +316,15 @@ class ViewAction(InterfaceAction):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if self.gui.current_view() is self.gui.library_view:
|
if self.gui.current_view() is self.gui.library_view:
|
||||||
ids = list(map(self.gui.library_view.model().id, rows))
|
ids = []
|
||||||
self._view_calibre_books(ids)
|
m = self.gui.library_view.model().id
|
||||||
|
for r in rows:
|
||||||
|
try:
|
||||||
|
ids.append(m(r))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
if ids:
|
||||||
|
self._view_calibre_books(ids)
|
||||||
else:
|
else:
|
||||||
paths = self.gui.current_view().model().paths(rows)
|
paths = self.gui.current_view().model().paths(rows)
|
||||||
for path in paths:
|
for path in paths:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user