From 2c1aa909e567cdfd21013620dfa35454b5cc5a46 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 20 Apr 2007 15:09:22 +0000 Subject: [PATCH] 2007-04-20 Don Allingham * src/DisplayModels/_BaseModel.py (BaseModel.add_row_by_handle): if search not defined, do an insert svn: r8410 --- ChangeLog | 4 ++++ src/DisplayModels/_BaseModel.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8789b28a3..24a4d17ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-20 Don Allingham + * src/DisplayModels/_BaseModel.py (BaseModel.add_row_by_handle): + if search not defined, do an insert + 2007-04-19 Brian Matherly * src/docgen/ODFDoc.py: PROPERLY escape ampersands diff --git a/src/DisplayModels/_BaseModel.py b/src/DisplayModels/_BaseModel.py index eb5c45425..4172c892a 100644 --- a/src/DisplayModels/_BaseModel.py +++ b/src/DisplayModels/_BaseModel.py @@ -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))