Edit Book: Spell Check: Fix replaced words coming back into the list when toggling the "Show only misspelled words" setting

This commit is contained in:
Kovid Goyal 2014-09-30 17:32:25 +05:30
parent 649be15d3a
commit 421724f032

View File

@ -770,6 +770,7 @@ class WordsModel(QAbstractTableModel):
self.beginRemoveRows(QModelIndex(), row, row)
del self.items[row]
self.endRemoveRows()
self.words.pop(w, None)
return new_key
def update_word(self, w):