Alan Gomes Alvino has proposed merging lp:~gtg-user/gtg/bugfix-516392 into
lp:gtg.
Requested reviews:
Gtg developers (gtg)
Related bugs:
Bug #516392 in Getting Things GNOME!: "Subtasks in the task pane should be
ordered the same as in the parent task"
https://bugs.launchpad.net/gtg/+bug/516392
For more details, see:
https://code.launchpad.net/~gtg-user/gtg/bugfix-516392/+merge/113496
What i was do here was add a condition if the tags have parents on the method
title_sorting
--
https://code.launchpad.net/~gtg-user/gtg/bugfix-516392/+merge/113496
Your team Gtg developers is requested to review the proposed merge of
lp:~gtg-user/gtg/bugfix-516392 into lp:gtg.
=== modified file 'GTG/gtk/browser/treeview_factory.py'
--- GTG/gtk/browser/treeview_factory.py 2012-06-12 03:58:56 +0000
+++ GTG/gtk/browser/treeview_factory.py 2012-07-05 07:07:02 +0000
@@ -160,6 +160,9 @@
return sort
def title_sorting(self,task1,task2,order):
+ # Subtasks will not being ordered
+ if task1.has_parent() and task2.has_parent():
+ return 0
return cmp(task1.get_title(),task2.get_title())
def __date_comp(self,task1,task2,para,order):
_______________________________________________
Mailing list: https://launchpad.net/~gtg
Post to : [email protected]
Unsubscribe : https://launchpad.net/~gtg
More help : https://help.launchpad.net/ListHelp