7119: Register history objects at startup

This commit is contained in:
Nick Hall 2014-04-01 13:53:31 +01:00
parent f4c871bdaf
commit d387bfbe77

View File

@ -401,6 +401,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)