7119: Register history objects at startup

This commit is contained in:
Nick Hall 2014-04-01 13:53:31 +01:00
parent 26972a098b
commit 24a7d44b43

View File

@ -404,6 +404,11 @@ class ViewManager(CLIManager):
self.uistate = DisplayState(self.window, self.statusbar, self.uistate = DisplayState(self.window, self.statusbar,
self.uimanager, self) 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.dbstate.connect('database-changed', self.uistate.db_changed)
self.tags = Tags(self.uistate, self.dbstate) self.tags = Tags(self.uistate, self.dbstate)