Fixed sort_dir vs. sort_direct

svn: r667
This commit is contained in:
Don Allingham 2001-12-27 05:36:12 +00:00
parent 88ef8089a6
commit 4e6a9abe93

View File

@ -150,17 +150,17 @@ class PlaceView:
for a in self.sort_arrow: for a in self.sort_arrow:
a.hide() a.hide()
if self.sort_col == column: if self.sort_col == column:
if self.sort_direct == GTK.SORT_DESCENDING: if self.sort_dir == GTK.SORT_DESCENDING:
self.sort_direct = GTK.SORT_ASCENDING self.sort_dir = GTK.SORT_ASCENDING
else: else:
self.sort_direct = GTK.SORT_DESCENDING self.sort_dir = GTK.SORT_DESCENDING
else: else:
self.sort_direct = GTK.SORT_ASCENDING self.sort_dir = GTK.SORT_ASCENDING
self.sort_col = column self.sort_col = column
self.set_arrow(column) self.set_arrow(column)
self.place_list.set_sort_type(self.sort_direct) self.place_list.set_sort_type(self.sort_dir)
self.place_list.set_sort_column(self.sort_map[self.sort_col]) self.place_list.set_sort_column(self.sort_map[self.sort_col])
Config.save_sort_cols("place",self.sort_col,self.sort_direct) Config.save_sort_cols("place",self.sort_col,self.sort_dir)
self.place_list.sort() self.place_list.sort()
if sel: if sel: