3217: All views except Person View are NOT updated when adding or deleting entries
svn: r13319
This commit is contained in:
		| @@ -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()) | ||||
|   | ||||
| @@ -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(): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user