mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Edit Book: Spell check dialog: Ensure that the new current word is highlighted after changing a word.
This commit is contained in:
parent
550a8d209d
commit
f9931d792a
@ -1137,6 +1137,8 @@ class SpellCheck(Dialog):
|
||||
self.word_replaced.emit(changed_files)
|
||||
w = self.words_model.replace_word(w, new_word)
|
||||
row = self.words_model.row_for_word(w)
|
||||
if row == -1:
|
||||
row = self.words_view.currentIndex().row()
|
||||
if row > -1:
|
||||
self.words_view.highlight_row(row)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user