src/eric7/QScintilla/Editor.py

branch
eric7-maintenance
changeset 10616
4aa36fcd4a30
parent 10534
783d835d7fe4
parent 10570
ae53b96eedbb
child 10659
43ead32943ca
--- a/src/eric7/QScintilla/Editor.py	Sat Feb 10 11:02:45 2024 +0100
+++ b/src/eric7/QScintilla/Editor.py	Sun Mar 03 10:39:29 2024 +0100
@@ -6421,12 +6421,8 @@
         # now check ourselves
         fn = self.getFileName()
         if fn is not None:
-            prEnable |= self.project.isPy3Project() and bool(
-                Utilities.getProfileFileName(fn)
-            )
-            coEnable |= self.project.isPy3Project() and bool(
-                Utilities.getCoverageFileName(fn)
-            )
+            prEnable |= self.isPyFile() and bool(Utilities.getProfileFileName(fn))
+            coEnable |= self.isPyFile() and bool(Utilities.getCoverageFileName(fn))
 
         coEnable |= bool(self.__coverageFile)
 

eric ide

mercurial