mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:43:32 +02:00
Fix scrolling to column zero when clicking on a column to sort.
This commit is contained in:
parent
21392dc27c
commit
e1a5bef896
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ def scroll_to_row(self, row):
|
|||
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…
Reference in a new issue