Spell check dialog: move down after correcting word, not up. Fixes #2002864 [Suggested spellcheck UI improvements](https://bugs.launchpad.net/calibre/+bug/2002864)

This commit is contained in:
Kovid Goyal 2023-01-14 11:47:19 +05:30
parent a7f713f68f
commit 092bafbe7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1243,6 +1243,8 @@ class SpellCheck(Dialog):
row = self.words_model.row_for_word(w)
if row == -1:
row = self.words_view.currentIndex().row()
if row < self.words_model.rowCount() - 1:
row += 1
if row > -1:
self.words_view.highlight_row(row)