mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix scrolling to column zero when clicking on a column to sort.
This commit is contained in:
parent
21392dc27c
commit
e1a5bef896
@ -612,7 +612,7 @@ class BooksView(QTableView): # {{{
|
||||
if row > -1:
|
||||
h = self.horizontalHeader()
|
||||
for i in range(h.count()):
|
||||
if not h.isSectionHidden(i):
|
||||
if not h.isSectionHidden(i) and h.sectionViewportPosition(i) >= 0:
|
||||
self.scrollTo(self.model().index(row, i))
|
||||
break
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user