Segfault on changing tab with filter applied

svn: r1569
This commit is contained in:
Alex Roitman 2003-05-22 01:25:23 +00:00
parent 282cd6732d
commit 0ad11c728c

View File

@ -1830,7 +1830,6 @@ class Gramps:
self.topWindow.set_resizable(gtk.TRUE) self.topWindow.set_resizable(gtk.TRUE)
def apply_filter(self,current_model=None): def apply_filter(self,current_model=None):
self.status_text(_('Updating display...')) self.status_text(_('Updating display...'))
datacomp = self.DataFilter.compare datacomp = self.DataFilter.compare
@ -1864,6 +1863,8 @@ class Gramps:
if self.id2col.has_key(key): if self.id2col.has_key(key):
(model,iter) = self.id2col[key] (model,iter) = self.id2col[key]
model.remove(iter) model.remove(iter)
del self.id2col[key]
for i in self.pl_page: for i in self.pl_page:
i.sort() i.sort()