Steve Scheel has proposed merging lp:~nmu-sscheel/gtg/bug1036955 into lp:gtg.

Requested reviews:
  Gtg developers (gtg)

For more details, see:
https://code.launchpad.net/~nmu-sscheel/gtg/bug1036955/+merge/121337

Fixes bug #1036955, which was setting the due date calendar date to the current 
date even when a task had a start date.
-- 
https://code.launchpad.net/~nmu-sscheel/gtg/bug1036955/+merge/121337
Your team Gtg developers is requested to review the proposed merge of 
lp:~nmu-sscheel/gtg/bug1036955 into lp:gtg.
=== 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 @@
     def on_date_pressed(self, widget, date_kind):
         """Called when a date-changing button is clicked."""
         if date_kind == GTGCalendar.DATE_KIND_DUE:
-            date = self.task.get_due_date()
+            if not self.task.get_due_date():
+                date = self.task.get_start_date()
+            else:
+                date = self.task.get_due_date()
         elif date_kind == GTGCalendar.DATE_KIND_START:
             date = self.task.get_start_date()
         elif date_kind == GTGCalendar.DATE_KIND_CLOSED:

_______________________________________________
Mailing list: https://launchpad.net/~gtg
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gtg
More help   : https://help.launchpad.net/ListHelp

Reply via email to