diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 52338488d..a4b76e118 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-12-20 Don Allingham + * src/DisplayModels/_BaseModel.py (BaseModel.__init__): choose + correct sort column + 2006-12-19 Alex Roitman * src/PluginUtils/_Plugins.py: Emit signal on rebuild, rebuild open plugin dialogs on rebuild. diff --git a/gramps2/src/DisplayModels/_BaseModel.py b/gramps2/src/DisplayModels/_BaseModel.py index d7b7b067b..099af81e7 100644 --- a/gramps2/src/DisplayModels/_BaseModel.py +++ b/gramps2/src/DisplayModels/_BaseModel.py @@ -60,7 +60,8 @@ class BaseModel(gtk.GenericTreeModel): self.set_property("leak_references",False) self.db = db if sort_map: - col = sort_map[scol][1] + self.sort_map = [ f for f in sort_map if f[0]] + col = self.sort_map[scol][1] self.sort_func = self.smap[col] else: self.sort_func = self.smap[scol]