← Back to team overview

gtg-user team mailing list archive

[Merge] lp:~gtg-user/gtg/bugfix-516392 into lp:gtg


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"

For more details, see:

What i was do here was add a condition if the tags have parents on the method title_sorting
Your team Gtg users is subscribed to branch lp:~gtg-user/gtg/bugfix-516392.
=== 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):

Follow ups