GTG

Merge lp:~nmu-sscheel/gtg/bug1036955 into lp:~gtg/gtg/old-trunk

Proposed by Steve Scheel
Status: Merged
Merged at revision: 1231
Proposed branch: lp:~nmu-sscheel/gtg/bug1036955
Merge into: lp:~gtg/gtg/old-trunk
Diff against target: 15 lines (+4/-1)
1 file modified
GTG/gtk/editor/editor.py (+4/-1)
To merge this branch: bzr merge lp:~nmu-sscheel/gtg/bug1036955
Reviewer Review Type Date Requested Status
Bertrand Rousseau (community) code, run Approve
Review via email: mp+121337@code.launchpad.net

Description of the change

Fixes bug #1036955, which was setting the due date calendar date to the current date even when a task had a start date.

To post a comment you must log in.
Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

Ok!

review: Approve (code, run)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'GTG/gtk/editor/editor.py'
2--- GTG/gtk/editor/editor.py 2012-08-08 14:56:18 +0000
3+++ GTG/gtk/editor/editor.py 2012-08-26 16:48:18 +0000
4@@ -379,7 +379,10 @@
5 def on_date_pressed(self, widget, date_kind):
6 """Called when a date-changing button is clicked."""
7 if date_kind == GTGCalendar.DATE_KIND_DUE:
8- date = self.task.get_due_date()
9+ if not self.task.get_due_date():
10+ date = self.task.get_start_date()
11+ else:
12+ date = self.task.get_due_date()
13 elif date_kind == GTGCalendar.DATE_KIND_START:
14 date = self.task.get_start_date()
15 elif date_kind == GTGCalendar.DATE_KIND_CLOSED:

Subscribers

People subscribed via source and target branches

to status/vote changes: