mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Don't call setCurrentRow if row didn't change
This commit is contained in:
parent
e092dadc9a
commit
364725a528
1 changed files with 3 additions and 2 deletions
|
@ -92,8 +92,9 @@ class StudyDeck(QDialog):
|
|||
|
||||
if rows_count:
|
||||
new_row %= rows_count # don't let row index overflow/underflow
|
||||
self.form.list.setCurrentRow(new_row)
|
||||
return new_row != current_row
|
||||
if new_row != current_row:
|
||||
self.form.list.setCurrentRow(new_row)
|
||||
return True
|
||||
return False
|
||||
|
||||
def redraw(self, filt, focus=None):
|
||||
|
|
Loading…
Reference in a new issue