Editor: fixed the integration of docstring generator for newly created files.

Mon, 25 Jan 2021 14:44:35 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 25 Jan 2021 14:44:35 +0100
changeset 8004
38d359e2ded7
parent 8002
6002378278c9
child 8005
94a6a1bd5f80

Editor: fixed the integration of docstring generator for newly created files.

eric6/QScintilla/Editor.py file | annotate | diff | comparison | revisions
diff -r 6002378278c9 -r 38d359e2ded7 eric6/QScintilla/Editor.py
--- a/eric6/QScintilla/Editor.py	Sat Jan 23 12:52:18 2021 +0100
+++ b/eric6/QScintilla/Editor.py	Mon Jan 25 14:44:35 2021 +0100
@@ -1465,6 +1465,8 @@
                 self.setLanguage(self.supportedLanguages[language][1])
                 self.checkSyntax()
         
+        self.__docstringGenerator = None
+        
     def __languageChanged(self, language, propagate=True):
         """
         Private slot handling a change of a connected editor's language.
@@ -1487,6 +1489,8 @@
                              propagate=propagate)
             self.checkSyntax()
         
+        self.__docstringGenerator = None
+        
     def __resetLanguage(self, propagate=True):
         """
         Private method used to reset the language selection.
@@ -1513,6 +1517,8 @@
         self.setMonospaced(useMonospaced)
         self.menuActs["MonospacedFont"].setChecked(self.useMonospaced)
         
+        self.__docstringGenerator = None
+        
         if not self.inLanguageChanged and propagate:
             self.inLanguageChanged = True
             self.languageChanged.emit(self.apiLanguage)
@@ -1542,6 +1548,8 @@
         self.recolor()
         self.__checkLanguage()
         
+        self.__docstringGenerator = None
+        
         # set the text display
         if initTextDisplay:
             self.__setTextDisplay()

eric ide

mercurial