mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 00:13:19 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -1137,6 +1137,8 @@ def do_change_word(self, w, new_word):
|
|||
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…
Reference in a new issue