Sync editors to container when refreshing spell check dialog

This commit is contained in:
Kovid Goyal 2014-04-17 11:30:30 +05:30
parent 303d5f04fe
commit ae443dc309
2 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,7 @@ class Boss(QObject):
self.gui.central.search_panel.save_search.connect(self.save_search)
self.gui.central.search_panel.show_saved_searches.connect(self.show_saved_searches)
self.gui.spell_check.find_word.connect(self.find_word)
self.gui.spell_check.refresh_requested.connect(self.commit_all_editors_to_container)
def preferences(self):
p = Preferences(self.gui)

View File

@ -671,6 +671,7 @@ class SpellCheck(Dialog):
work_finished = pyqtSignal(object, object)
find_word = pyqtSignal(object, object)
refresh_requested = pyqtSignal()
def __init__(self, parent=None):
self.__current_word = None
@ -906,6 +907,7 @@ class SpellCheck(Dialog):
self.thread.join()
self.stack.setCurrentIndex(0)
self.progress_indicator.startAnimation()
self.refresh_requested.emit()
self.thread = Thread(target=self.get_words)
self.thread.daemon = True
self.cancel = False