GTG

Merge lp:~exufer/gtg/bugfix into lp:~gtg/gtg/old-trunk

Proposed by Volodymyr
Status: Merged
Merged at revision: 839
Proposed branch: lp:~exufer/gtg/bugfix
Merge into: lp:~gtg/gtg/old-trunk
Diff against target: 36 lines (+10/-0)
3 files modified
AUTHORS (+1/-0)
CHANGELOG (+3/-0)
GTG/taskeditor/editor.py (+6/-0)
To merge this branch: bzr merge lp:~exufer/gtg/bugfix
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Review via email: mp+21808@code.launchpad.net

Description of the change

Fixed bug #532392. This time really, I hope. :)

Now the due date in the task is set to be equal to the start date when it happens that the start date is later than the due date.

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

Looks good, implements consensus of bug report.
Merged and pushed.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'AUTHORS'
2--- AUTHORS 2010-03-12 10:42:06 +0000
3+++ AUTHORS 2010-03-21 16:55:25 +0000
4@@ -63,3 +63,4 @@
5
6 For 0.3:
7 ----------
8+* Volodymyr Floreskul <exufer@gmail.com>
9
10=== modified file 'CHANGELOG'
11--- CHANGELOG 2010-02-22 08:21:25 +0000
12+++ CHANGELOG 2010-03-21 16:55:25 +0000
13@@ -1,3 +1,6 @@
14+2010-03-01 Getting Things GNOME! 0.3-development
15+ * Fixed bug #532392, a start date is later than a due date, by Volodymyr Floreskul
16+
17 2010-03-01 Getting Things GNOME! 0.2.2
18 * Autostart on login, by Luca Invernizzi
19 * Preferences dialog, by Paul Kishimoto
20
21=== modified file 'GTG/taskeditor/editor.py'
22--- GTG/taskeditor/editor.py 2010-03-12 11:16:15 +0000
23+++ GTG/taskeditor/editor.py 2010-03-21 16:55:25 +0000
24@@ -384,6 +384,12 @@
25 self.task.set_due_date(datetoset)
26 elif data == "closed" :
27 self.task.set_closed_date(datetoset)
28+ #Set the due date to be equal to the start date
29+ # when it happens that the start date is later than the due date
30+ start_date = self.task.get_start_date()
31+ due_date = self.task.get_due_date()
32+ if start_date and (start_date > due_date):
33+ self.task.set_due_date(self.task.get_start_date())
34 else :
35 #We should write in red in the entry if the date is not valid
36 widget.modify_text(gtk.STATE_NORMAL, gtk.gdk.color_parse("#F00"))

Subscribers

People subscribed via source and target branches

to status/vote changes: