1

Entering text into vocab search field also displays results for Kanji

Former-commit-id: 956e7df4b9c3191358b0eac34d5bb72d86863b76
This commit is contained in:
Alex Yatskov 2013-12-27 07:35:01 -08:00
parent e05d2c871b
commit c206913354

View File

@ -261,6 +261,9 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
text = unicode(self.textVocabSearch.text()) text = unicode(self.textVocabSearch.text())
self.state.vocabDefs, length = self.language.findTerm(text, True) self.state.vocabDefs, length = self.language.findTerm(text, True)
self.updateVocabDefs() self.updateVocabDefs()
if self.dockKanji.isVisible():
self.state.kanjiDefs = self.language.findCharacters(text)
self.updateKanjiDefs()
def onKanjiDefSearchReturn(self): def onKanjiDefSearchReturn(self):