From 092bafbe7e0e6ecd63ea505206d54530e61c1d2a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Jan 2023 11:47:19 +0530 Subject: [PATCH] Spell check dialog: move down after correcting word, not up. Fixes #2002864 [Suggested spellcheck UI improvements](https://bugs.launchpad.net/calibre/+bug/2002864) --- src/calibre/gui2/tweak_book/spell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index 34f7bfaca7..56aca7efc4 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -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)