Fixed an issue with the task manager (part 2). 5_2_x

Sun, 12 Aug 2012 13:49:43 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 12 Aug 2012 13:49:43 +0200
branch
5_2_x
changeset 2003
5198b0bf0d58
parent 2002
a26d00f60104
child 2004
cd8050131d24

Fixed an issue with the task manager (part 2).

Tasks/TaskViewer.py file | annotate | diff | comparison | revisions
--- a/Tasks/TaskViewer.py	Sun Aug 12 13:42:23 2012 +0200
+++ b/Tasks/TaskViewer.py	Sun Aug 12 13:49:43 2012 +0200
@@ -214,6 +214,14 @@
         @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 != ""
 
 
 class TaskFilter(object):

eric ide

mercurial