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
=== modified file 'GTG/gtk/editor/editor.py'
--- GTG/gtk/editor/editor.py 2012-08-08 14:56:18 +0000
+++ GTG/gtk/editor/editor.py 2012-08-26 16:48:18 +0000
@@ -379,7 +379,10 @@
379 def on_date_pressed(self, widget, date_kind):379 def on_date_pressed(self, widget, date_kind):
380 """Called when a date-changing button is clicked."""380 """Called when a date-changing button is clicked."""
381 if date_kind == GTGCalendar.DATE_KIND_DUE:381 if date_kind == GTGCalendar.DATE_KIND_DUE:
382 date = self.task.get_due_date()382 if not self.task.get_due_date():
383 date = self.task.get_start_date()
384 else:
385 date = self.task.get_due_date()
383 elif date_kind == GTGCalendar.DATE_KIND_START:386 elif date_kind == GTGCalendar.DATE_KIND_START:
384 date = self.task.get_start_date()387 date = self.task.get_start_date()
385 elif date_kind == GTGCalendar.DATE_KIND_CLOSED:388 elif date_kind == GTGCalendar.DATE_KIND_CLOSED:

Subscribers

People subscribed via source and target branches

to status/vote changes: