From 09754166f0c9c6b3c4346c2a83b42e0bd0530988 Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Sun, 21 Jun 2015 20:01:58 +0200 Subject: [PATCH] Proclaim to all textEditView that dict has been changed --- src/mainWindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainWindow.py b/src/mainWindow.py index 9fbcef43..ccfa8601 100644 --- a/src/mainWindow.py +++ b/src/mainWindow.py @@ -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/"))