2006-12-20 Don Allingham <don@gramps-project.org>

* src/DisplayModels/_BaseModel.py (BaseModel.__init__): choose
	correct sort column



svn: r7829
This commit is contained in:
Don Allingham 2006-12-20 23:50:01 +00:00
parent 8a2e1b5ad6
commit 9715df87e6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-12-20 Don Allingham <don@gramps-project.org>
* src/DisplayModels/_BaseModel.py (BaseModel.__init__): choose
correct sort column
2006-12-19 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_Plugins.py: Emit signal on rebuild, rebuild
open plugin dialogs on rebuild.

View File

@ -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]