--- a/TimeTracker/TimeTrackEntry.py Sun Oct 21 14:53:23 2012 +0200 +++ b/TimeTracker/TimeTrackEntry.py Sun Oct 21 15:33:36 2012 +0200 @@ -211,6 +211,16 @@ .replace("\n", " ")\ .replace("\r", " ") + def addDuration(self, duration): + """ + Public method to add a duration. + + @param duration duration to be added in minutes (integer). Negative values + are ignored. + """ + if duration > 0: + self.__duration += duration + def getEntryData(self): """ Public method to get the entry data.