3217: All views except Person View are NOT updated when adding or deleting entries

svn: r13319
This commit is contained in:
Benny Malengier 2009-10-06 19:13:28 +00:00
parent c50f7ae67b
commit 2de9aa8404
2 changed files with 3 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ class ListView(BookMarkView):
return
def change_db(self, db):
self._cleanup_callbacks()
self._change_db(db)
for sig in self.signal_map:
self.callman.add_db_signal(sig, self.signal_map[sig])
self.bookmarks.update_bookmarks(self.get_bookmarks())

View File

@ -84,6 +84,8 @@ class DbGUIElement(object):
Remove all db callbacks.
This is done automatically on destruction of the object, but is
normally needed earlier, calling this method does so.
Use _change_db method if you need to remove the callbacks because the
database has chaned
"""
database = self.callman.database
if database.is_open():