From 0335fa592a16f4f1e0e19c0cc2b1aa2d74c382a8 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 16 Feb 2005 18:05:20 +0000 Subject: [PATCH] * src/DisplayModels.py: don't override on_row_deleted svn: r4037 --- gramps2/ChangeLog | 3 +++ gramps2/src/DisplayModels.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e2d99681d..fe5911644 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-02-16 Don Allingham + * src/DisplayModels.py: don't override on_row_deleted + 2005-02-16 Alex Roitman * src/EditSource.py (DelSrcQuery.query_response): Typos. * src/ImageSelect.py (DeleteMediaQuery.query_response): Typo. diff --git a/gramps2/src/DisplayModels.py b/gramps2/src/DisplayModels.py index 9ef4d4724..efa76c3a0 100644 --- a/gramps2/src/DisplayModels.py +++ b/gramps2/src/DisplayModels.py @@ -88,8 +88,7 @@ class BaseModel(gtk.GenericTreeModel): def delete_row_by_handle(self,handle): index = self.indexlist[handle] - del self.datalist[index] - del self.indexlist[handle] + self.rebuild_data() self.row_deleted(index) def update_row_by_handle(self,handle):