eric7/UI/UserInterface.py

branch
eric7
changeset 8431
bed315a45088
parent 8430
14c69f0ccca5
child 8441
371cbc55badd
diff -r 14c69f0ccca5 -r bed315a45088 eric7/UI/UserInterface.py
--- a/eric7/UI/UserInterface.py	Wed Jun 16 19:21:45 2021 +0200
+++ b/eric7/UI/UserInterface.py	Thu Jun 17 18:56:21 2021 +0200
@@ -745,8 +745,11 @@
         
         with contextlib.suppress(ImportError, AttributeError):
             from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin
+            pwl = SpellChecker.getUserDictionaryPath(isException=False)
+            pel = SpellChecker.getUserDictionaryPath(isException=True)
             SpellCheckMixin.setDefaultLanguage(
-                Preferences.getEditor("SpellCheckingDefaultLanguage"))
+                Preferences.getEditor("SpellCheckingDefaultLanguage"),
+                pwl, pel)
         
         # attributes for the last shown configuration page and the
         # extended configuration entries
@@ -6208,8 +6211,11 @@
         
         with contextlib.suppress(ImportError, AttributeError):
             from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin
+            pwl = SpellChecker.getUserDictionaryPath(isException=False)
+            pel = SpellChecker.getUserDictionaryPath(isException=True)
             SpellCheckMixin.setDefaultLanguage(
-                Preferences.getEditor("SpellCheckingDefaultLanguage"))
+                Preferences.getEditor("SpellCheckingDefaultLanguage"),
+                pwl, pel)
         
         if self.__layoutType == "Sidebars":
             delay = Preferences.getUI("SidebarDelay")

eric ide

mercurial