parent
d38bb05f7d
commit
5ad2680205
@ -2,7 +2,7 @@
|
|||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2003-2006 Donald N. Allingham
|
# Copyright (C) 2003-2006 Donald N. Allingham
|
||||||
# 2009 Gary Burton
|
# 2009-2011 Gary Burton
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -318,7 +318,6 @@ class BaseSelector(ManagedWindow.ManagedWindow):
|
|||||||
if self.sort_col != data:
|
if self.sort_col != data:
|
||||||
self.sortorder = gtk.SORT_ASCENDING
|
self.sortorder = gtk.SORT_ASCENDING
|
||||||
self.sort_col = data
|
self.sort_col = data
|
||||||
self.build_tree()
|
|
||||||
else:
|
else:
|
||||||
if (self.columns[data].get_sort_order() == gtk.SORT_DESCENDING
|
if (self.columns[data].get_sort_order() == gtk.SORT_DESCENDING
|
||||||
or not self.columns[data].get_sort_indicator()):
|
or not self.columns[data].get_sort_indicator()):
|
||||||
@ -326,6 +325,7 @@ class BaseSelector(ManagedWindow.ManagedWindow):
|
|||||||
else:
|
else:
|
||||||
self.sortorder = gtk.SORT_DESCENDING
|
self.sortorder = gtk.SORT_DESCENDING
|
||||||
self.model.reverse_order()
|
self.model.reverse_order()
|
||||||
|
self.build_tree()
|
||||||
|
|
||||||
handle = self.first_selected()
|
handle = self.first_selected()
|
||||||
if handle:
|
if handle:
|
||||||
|
Loading…
Reference in New Issue
Block a user