From 2de9aa8404c99dd034cf923264ee6d0ec1ba3e00 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 6 Oct 2009 19:13:28 +0000 Subject: [PATCH] 3217: All views except Person View are NOT updated when adding or deleting entries svn: r13319 --- src/PageView.py | 2 +- src/gui/dbguielement.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PageView.py b/src/PageView.py index 543686509..e4f96bfe8 100644 --- a/src/PageView.py +++ b/src/PageView.py @@ -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()) diff --git a/src/gui/dbguielement.py b/src/gui/dbguielement.py index 1a281e857..16dc25804 100644 --- a/src/gui/dbguielement.py +++ b/src/gui/dbguielement.py @@ -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():