From 24a7d44b431f2bce74aaca78e870d0e62095dc2a Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 1 Apr 2014 13:53:31 +0100 Subject: [PATCH] 7119: Register history objects at startup --- gramps/gui/viewmanager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gramps/gui/viewmanager.py b/gramps/gui/viewmanager.py index 757cf2c29..535ef964f 100644 --- a/gramps/gui/viewmanager.py +++ b/gramps/gui/viewmanager.py @@ -404,6 +404,11 @@ class ViewManager(CLIManager): self.uistate = DisplayState(self.window, self.statusbar, self.uimanager, self) + # Create history objects + for nav_type in ('Person', 'Family', 'Event', 'Place', 'Source', + 'Citation', 'Repository', 'Note', 'Media'): + self.uistate.register(self.dbstate, nav_type, 0) + self.dbstate.connect('database-changed', self.uistate.db_changed) self.tags = Tags(self.uistate, self.dbstate)