eric7/QScintilla/Lexers/SubstyledLexer.py

branch
eric7
changeset 8637
394377638256
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/QScintilla/Lexers/SubstyledLexer.py	Sat Sep 25 18:08:10 2021 +0200
+++ b/eric7/QScintilla/Lexers/SubstyledLexer.py	Sat Sep 25 18:12:48 2021 +0200
@@ -71,7 +71,7 @@
         """
         Public method to load the sub-styles from the settings file.
         """
-        settings = Preferences.Prefs.settings
+        settings = Preferences.getSettings()
         
         # Step 1: check if sub-styles were defined and saved
         subStylesDefined = False
@@ -247,7 +247,7 @@
         if not self.__subStylesInitialized:
             return
         
-        settings = Preferences.Prefs.settings
+        settings = Preferences.getSettings()
         
         # Step 1: remove all sub-style definitions first
         for baseStyle in self.baseStyles:

eric ide

mercurial