This commit is contained in:
Kovid Goyal 2017-01-13 09:08:35 +05:30
parent 25e51e968f
commit 08f4d07466

View File

@ -132,7 +132,7 @@ class View:
idx = spine.indexOf(self.currently_showing.name) idx = spine.indexOf(self.currently_showing.name)
if idx < 0: if idx < 0:
error_dialog(_('Missing file'), _( error_dialog(_('Missing file'), _(
'Could not search as the spine item {} is missing from the book'.format(self.currently_showing.name))) 'Could not search as the spine item {} is missing from the book').format(self.currently_showing.name))
return return
names = v'[]' names = v'[]'
item_groups = [range(idx-1, -1, -1), range(spine.length-1, idx, -1)] if data.backwards else [range(idx + 1, spine.length), range(idx)] item_groups = [range(idx-1, -1, -1), range(spine.length-1, idx, -1)] if data.backwards else [range(idx + 1, spine.length), range(idx)]