From 09f20eaf9f5c2b8de338295c17eeff6f1b34cc97 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 5 Feb 2011 16:56:39 +0000 Subject: [PATCH] Redraw selectors on toggling sort order. Bug #4518 svn: r16580 --- src/gui/selectors/baseselector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/selectors/baseselector.py b/src/gui/selectors/baseselector.py index 404636822..c1ef84df7 100644 --- a/src/gui/selectors/baseselector.py +++ b/src/gui/selectors/baseselector.py @@ -2,7 +2,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # 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 # it under the terms of the GNU General Public License as published by @@ -286,7 +286,6 @@ class BaseSelector(ManagedWindow.ManagedWindow): if self.sort_col != data: self.sortorder = gtk.SORT_ASCENDING self.sort_col = data - self.build_tree() else: if (self.columns[data].get_sort_order() == gtk.SORT_DESCENDING or not self.columns[data].get_sort_indicator()): @@ -294,6 +293,7 @@ class BaseSelector(ManagedWindow.ManagedWindow): else: self.sortorder = gtk.SORT_DESCENDING self.model.reverse_order() + self.build_tree() handle = self.first_selected() if handle: