src/eric7/QScintilla/Editor.py

branch
eric7
changeset 10570
ae53b96eedbb
parent 10517
aecd5a8c958c
child 10573
c4f503f40caf
child 10616
4aa36fcd4a30
child 10621
f5631f40c4d9
--- a/src/eric7/QScintilla/Editor.py	Wed Feb 14 10:01:25 2024 +0100
+++ b/src/eric7/QScintilla/Editor.py	Wed Feb 14 10:19:19 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