mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Don't uneccessarily scroll the bok list horizontally
This commit is contained in:
parent
65ddab2074
commit
19bf985c14
@ -612,7 +612,7 @@ class BooksView(QTableView): # {{{
|
|||||||
if row > -1:
|
if row > -1:
|
||||||
h = self.horizontalHeader()
|
h = self.horizontalHeader()
|
||||||
for i in range(h.count()):
|
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))
|
self.scrollTo(self.model().index(row, i))
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user