Proclaim to all textEditView that dict has been changed

This commit is contained in:
Olivier Keshavjee 2015-06-21 20:01:58 +02:00
parent 1532ceecae
commit 09754166f0

View file

@ -732,6 +732,10 @@ class MainWindow(QMainWindow, Ui_MainWindow):
if i.isChecked():
self.dictChanged.emit(i.text().replace("&", ""))
settings.dict = i.text().replace("&", "")
# Find all textEditView from self, and toggle spellcheck
for w in self.findChildren(textEditView, QRegExp(".*"), Qt.FindChildrenRecursively):
w.setDict(settings.dict)
def openPyEnchantWebPage(self):
QDesktopServices.openUrl(QUrl("http://pythonhosted.org/pyenchant/"))