This commit is contained in:
Kovid Goyal 2023-05-07 15:48:53 +05:30
parent 1fd1d1cdef
commit b2d0fb5cf7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1348,7 +1348,7 @@ class BooksView(QTableView): # {{{
if vh.sectionsHidden():
for s in range(vertical_index - 1, -1, -1):
r = vh.logicalIndex(s)
if vh.isSectionHidden(row):
if vh.isSectionHidden(r):
hidden_sections += 1
vsb.setValue(vertical_index - hidden_sections)