From 5ad2680205f3fa94e954851dd72ded30eb7948d4 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 5 Feb 2011 16:56:03 +0000 Subject: [PATCH] Redraw selectors on toggling sort order. Bug #4518 svn: r16579 --- 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 078906366..fbb8046ad 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 @@ -318,7 +318,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()): @@ -326,6 +325,7 @@ class BaseSelector(ManagedWindow.ManagedWindow): else: self.sortorder = gtk.SORT_DESCENDING self.model.reverse_order() + self.build_tree() handle = self.first_selected() if handle: