2007-04-20 Don Allingham <don@gramps-project.org>

* src/DisplayModels/_BaseModel.py (BaseModel.add_row_by_handle): 
	if search not defined, do an insert



svn: r8410
This commit is contained in:
Don Allingham 2007-04-20 15:09:22 +00:00
parent e97f968c25
commit 835079dae2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-04-20 Don Allingham <don@gramps-project.org>
* src/DisplayModels/_BaseModel.py (BaseModel.add_row_by_handle):
if search not defined, do an insert
2007-04-19 Brian Matherly <brian@gramps-project.org>
* src/docgen/ODFDoc.py: PROPERLY escape ampersands

View File

@ -222,7 +222,7 @@ class BaseModel(gtk.GenericTreeModel):
self.node_map.clear_map()
def add_row_by_handle(self,handle):
if self.search and self.search.match(handle):
if not self.search or (self.search and self.search.match(handle)):
data = self.map(handle)
key = locale.strxfrm(self.sort_func(data))