This commit is contained in:
Kovid Goyal 2014-04-13 19:40:59 +05:30
parent 00709cf6f4
commit f991fb8ad0

View File

@ -364,9 +364,8 @@ class WordsModel(QAbstractTableModel):
self.do_sort() self.do_sort()
self.endResetModel() self.endResetModel()
def filter(self, filter_text, only_misspelt): def filter(self, filter_text):
self.filter_expression = filter_text or None self.filter_expression = filter_text or None
self.show_only_misspelt = only_misspelt
self.beginResetModel() self.beginResetModel()
self.do_filter() self.do_filter()
self.do_sort() self.do_sort()
@ -517,7 +516,7 @@ class SpellCheck(Dialog):
def do_filter(self): def do_filter(self):
text = unicode(self.filter_text.text()).strip() text = unicode(self.filter_text.text()).strip()
with self: with self:
self.words_model.filter(text, True) self.words_model.filter(text)
def refresh(self): def refresh(self):
if not self.isVisible(): if not self.isVisible():