--- a/src/eric7/Tasks/TaskViewer.py Wed Nov 16 18:11:52 2022 +0100 +++ b/src/eric7/Tasks/TaskViewer.py Thu Nov 17 18:11:42 2022 +0100 @@ -447,7 +447,9 @@ summary, filename=filename, lineno=lineno, - isProjectTask=(self.project and self.project.isProjectSource(filename)), + isProjectTask=( + self.project and self.project.isProjectCategory(filename, "SOURCES") + ), taskType=TaskType(taskType), description=description, ) @@ -509,7 +511,7 @@ checking some conditions (boolean) """ if conditionally: - if self.project and self.project.isProjectSource(filename): + if self.project and self.project.isProjectCategory(filename, "SOURCES"): # project related tasks will not be cleared return if not Preferences.getTasks("ClearOnFileClose"):