mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
00709cf6f4
commit
f991fb8ad0
@ -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():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user