Tasks/Task.py

changeset 2000
a81bf687e4ee
parent 1819
cfcfd617216a
child 2197
c4f24f8f34c0
--- a/Tasks/Task.py	Sun Aug 12 12:50:29 2012 +0200
+++ b/Tasks/Task.py	Sun Aug 12 13:42:23 2012 +0200
@@ -220,3 +220,11 @@
         @return flag indicating the project relation status (boolean)
         """
         return self._isProjectTask
+    
+    def isProjectFileTask(self):
+        """
+        Public slot to get an indication, if this task is related to a project file.
+        
+        @return flag indicating a project file task (boolean)
+        """
+        return self._isProjectTask and self.filename != ""

eric ide

mercurial