mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #1242291 [ValueError:min() arg is an empty sequence](https://bugs.launchpad.net/calibre/+bug/1242291)
This commit is contained in:
parent
2fae9e67c7
commit
7c2f6056d6
@ -700,6 +700,7 @@ class BooksView(QTableView): # {{{
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
sections = tuple(x for x in map(f, changed) if x is not None)
|
sections = tuple(x for x in map(f, changed) if x is not None)
|
||||||
|
if sections:
|
||||||
self.row_header.headerDataChanged(Qt.Vertical, min(sections), max(sections))
|
self.row_header.headerDataChanged(Qt.Vertical, min(sections), max(sections))
|
||||||
else:
|
else:
|
||||||
# Marked items have either appeared or all been removed
|
# Marked items have either appeared or all been removed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user