Minor whitespace cleanup
authorEd Page <eopage@byu.net>
Fri, 30 Oct 2009 03:26:42 +0000 (22:26 -0500)
committerEd Page <eopage@byu.net>
Fri, 30 Oct 2009 03:26:42 +0000 (22:26 -0500)
src/gonvert_glade.py

index 2e862b3..f4ea2f8 100755 (executable)
@@ -410,8 +410,10 @@ class Gonvert(object):
                                if col is maybeCol:
                                        direction = getattr(self, directionName)
                                        gtkDirection = gtk.SORT_ASCENDING if direction else gtk.SORT_DESCENDING
                                if col is maybeCol:
                                        direction = getattr(self, directionName)
                                        gtkDirection = gtk.SORT_ASCENDING if direction else gtk.SORT_DESCENDING
+
                                        # cause a sort
                                        self._sortedUnitModel.set_sort_column_id(columnIndex, gtkDirection)
                                        # cause a sort
                                        self._sortedUnitModel.set_sort_column_id(columnIndex, gtkDirection)
+
                                        # set the visual for sorting
                                        col.set_sort_indicator(True)
                                        col.set_sort_order(not direction)
                                        # set the visual for sorting
                                        col.set_sort_indicator(True)
                                        col.set_sort_order(not direction)